[Gllug] Where is the defualt domain name kept

Paul Brazier pbrazier at cosmos-uk.co.uk
Fri Nov 9 10:35:14 UTC 2001


> What file contains the default domain name, e.g. the domain 
> my linux box is 
> in. For example my pc is called gromit it's internet address is 
> gromit..bournemouth.ac.uk, at the moment my machine only thinks it is 
> gromit.localdomain
> 
> James

Did you get an answer to this? 

/etc/hosts seems to often have localhost.localdomain in it by default.
I thought this is just for hostnames though?
Perhaps it's only the DNS that knows about domain names?
I'm not sure if having a dial-up connection changes things because your
domain name might change depending on which ISP you dial.

I've noticed that the hostname seems to pick up the first name from the
last line in my /etc/hosts (I've set up several alias hostnames to test
Apache virtual domains). I noticed in /etc/rc.d/rc.sysinit it says:
"HOSTNAME=`/bin/hostname`" but this is a binary so I've not looked in to
how it works.

I think you can do all the hostname/domain name setting in linuxconf but
it is nice to know what files it uses behind the scenes.


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the originator.

This footnote also confirms that this email message has been checked
for the presence of computer viruses.

**********************************************************************


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list