On Friday 26 May 2006 10:09, Alexander Skwar wrote: > Hello! > > [EMAIL PROTECTED] ~ $ hostname -d > [EMAIL PROTECTED] ~ $ cat /etc/conf.d/domainname > # /etc/conf.d/domainname > > # When setting up resolv.conf, what should take precedence? > # If you wish to always override DHCP/whatever, set this to 1. > OVERRIDE=1 > > # To have a proper FQDN, you need to setup /etc/hosts and > /etc/resolv.conf # properly (domain entry in /etc/resolv.conf, and > FQDN in /etc/hosts). # > DNSDOMAIN="bei.digitalprojects.com" > > # This only set what /bin/hostname returns. If you need to setup NIS, > meaning # what /bin/domainname returns, please see: > # > # http://www.linux-nis.org/nis-howto/HOWTO/ > # > NISDOMAIN="bei.digitalprojects.com" > > [EMAIL PROTECTED] ~ $ > > Why does "hostname -d" not return a domainname? I would have > thought, that the "DNSDOMAIN" setting in combination with > "OVERRIDE=1" would set a DNS domain. > > Why's that not so? > > The system gets configured using dhcp, using dhcpcd.
I seem to remember that this was somehow related to /etc/hosts, look: # cat /etc/hosts 10.0.0.10 mybox mybox.my.domain # hostname -d # # (modify /etc/hosts) # cat /etc/hosts 10.0.0.10 mybox.my.domain mybox # hostname -d my.domain Don't know whether dhcp changes all this. -- gentoo-user@gentoo.org mailing list