Red Hat Bugzilla – Bug 10935
ypbind fails unless 'domainname' for local host is set
Last modified: 2008-05-01 11:37:55 EDT
On our network, we use both DHCP and NIS to configure Red Hat boxes. We
currently have RH 6.1 boxes in use.
Under RH 6.1, the only step needed to get ypbind to work was to set the
domain name under linuxconf's NIS section.
Under RH 6.2, ypbind does not work on our network. It exits, with an error
message in /var/log/messages stating that it doesn't know what domain to
use. On our RH 6.1 boxes, DHCP appears to set the domain name. On our RH
6.2 boxes, running 'domainname' at the command line shows that the domain
name hasn't been set.
As a workaround, I've added the 'domainname' command to /etc/rc.d/rc.local,
to hard code our domain name for our network. If I don't do this, ypbind
fails, claiming that it doesn't know what the domain is.
I'm at home right now, and don't have access to my network at work, but if
I look in /etc/rc.d/rc.sysinit, I can see that domainname is only set to
NISDOMAIN if it is defined in /etc/sysconfig/network. I'm guessing that
NISDOMAIN isn't being written into /etc/sysconfig/network in the same way
that it was under RH 6.1
pump-0.8 ses the NIS domain name ftp://people.redhat.com/ewt