试图在Centos客户端上configurationNIS,并得到错误的域不受限制

我试图设置一个主机使用NIS。 我已经启动了ypbind和yp-tools。 编辑/etc/yp.conf:

domain mydomain.local server hostname 

然后编辑:/ etc / sysconfig / network并添加:

 NISDOMAIN="mydomain.local" 

然后将NIS服务器添加到客户机的/ etc / hosts文件中。 然后我跑#domainname mydomain.local.com and #ypdomainname mydomain.local和编辑/etc/nsswitch.conf:

 passwd: files nis shadow: files nis group: files nis #hosts: db files nisplus nis dns hosts: files nis dns 

然后我启动了ypbind服务,并在其上设置chkconfig。 出于某种原因,当启动ypbind服务,我得到这个错误:

 Binding NIS service: ...... [FAILED] 

如果我ping mydomain.local我得到一个决心和回应。 当我su到我的用户名我得到以下错误:

 [root@itai-test ~]# su itaig YPBINDPROC_DOMAIN: Domain not bound [itaig@itai-test root]$ 

这是从/ var / log / messages:

 Jun 23 16:16:29 itai-test ypbind: NIS server for domain mydomain.local is not responding. 

尽pipe我知道NIS服务器成功地为许多其他服务器提供IP服务。 防火墙没有运行,并且在NIS客户端上禁用了iptables。 我已经三重检查了所有的configuration文件,我找不到有什么问题,也许你可以帮忙。

似乎已经解决的networking问题导致了这种行为。