My server/client OS is CentOS.
I have setup a nis master and slave server.
Master and slave server works fine, but I have problem with client configuration.
Test example from client:
Code:
ypcat -h nis.master.my_domain passwd.byname | grep PIPPO
PIPPO:x:6106:6106::/home/PIPPO:/bin/bash
ypcat -h nis.slave.my_domain passwd.byname | grep PIPPO
PIPPO:x:6106:6106::/home/PIPPO:/bin/bash
I have setup a file /etc/yp.conf
Code:
domain my_domain server nis.master.my_domain
domain my_domain server nis.slave.my_domain
After that I restart service ypbind
Code:
/etc/init.d/ypbind restart
The is that client using slave instead of master server .
Code:
ypwhich
nis.slave.my_domain