Bind

嘗試在 centos 客戶端上配置 NIS 並收到錯誤 Domain not bound

  • January 29, 2014

我正在嘗試將主機設置為使用 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 設置為 on。出於某種原因,在啟動 ypbind 服務時出現此錯誤:

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

如果我 ping mydomain.local 我得到解決和響應。當我使用我的使用者名時,我收到以下錯誤:

[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.

儘管我知道 NIS 伺服器成功地為許多其他伺服器提供 IP。防火牆未執行,並且在 NIS 客戶端上禁用了 iptables。我已經對所有配置文件進行了三次檢查,但找不到問題所在,也許您可以提供幫助。

似乎已解決的網路問題導致了此行為。

引用自:https://serverfault.com/questions/517901