On Friday 26 May 2006 08:25, Alexander Skwar wrote:
> Bo Ørsted Andresen wrote:
> > Friday 26 May 2006 10:46 skrev Etaoin Shrdlu:
> >> I seem to remember that this was somehow related to /etc/hosts, look:
> >>
> >> # cat /etc/hosts
> >
> > Changing:
> >> 10.0.0.10  mybox   mybox.my.domain
> >
> > to:
> >> 10.0.0.10  mybox.my.domain   mybox
> >
> > has just solved this issue for me. :) Thanks!
Here is why this solved the issue for you.  hostname -d and hostname --fqdn 
get the domain part by using gethostbyname() so it does a DNS lookup on your 
hostname.  If your /etc/hosts.conf is set to files, bind then it will look 
your hostname up in /etc/hosts then query DNS.  If your /etc/hosts file has 
an FQDN entry for your hostname then all is well.  If not then your hostname 
is queried in DNS using the domain statement in /etc/resolv.conf.

> But I wonder what this DNSDOMAIN setting in /etc/conf.d/domainname is
> supposed to do. Because of
It sets the domain in /etc/resolv.conf

> # When setting up resolv.conf, what should take precedence?
> # If you wish to always override DHCP/whatever, set this to 1.
> OVERRIDE=1
>
> I thought that this setting would have an effect. Seems not so...
This will determin whether DHCP will be allowed to replace your domain 
statement in /etc/resolv.conf.

I hope this clears it up.
-- 
Zac Slade
[EMAIL PROTECTED]
ICQ:1415282 YM:krakrjak AIM:ttyp99

-- 
gentoo-user@gentoo.org mailing list

Reply via email to