[Gllug] Where is the defualt domain name kept
Walid
walidshaari at yahoo.com
Fri Nov 9 11:46:09 UTC 2001
What about that then?
HOSTNAME="domain.tld" /etc/sysconfig/network
--- Paul Brazier <pbrazier at cosmos-uk.co.uk> wrote: > > 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
=====
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
walid at melinux.com
http://www.MeLinux.com
"Learn whatever knowledge you wish to acquire, and act upon what you have learned."
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list