IPA服务器NFS服务添加问题centos 7.2

IPA服务器NFS服务添加问题centos 7.2

我在将 NFS 服务添加到 IPA 服务器时遇到问题(登录 IPA 服务器并 kinit admin 后)。当我执行以下行时:

[root@ipa ~]# ipa service-add nfs/server1.example.com

我收到错误

ipa: ERROR: Host does not have corresponding DNS A/AAAA record

我已经正确配置了 3 台服务器,并在 IPA 服务器 Centos 7.2 中安装了 FreeIPA。

我的 IPA 服务器配置

IP4.ADDRESS 192.168.1.105/24
IP4.GATEWAY:192.168.1.1
ipv4.dns:8.8.8.8

[root@ipa ~]# vim /etc/resolv.conf
# Generated by NetworkManager
search example.com
nameserver 8.8.8.8

还正确配置了 server1

[root@ipa ~]# ipa host-show
Host name: server1
Host name: server1.example.com
Principal name: host/[email protected]
Password: False
Keytab: False
Managed by: server1.example.com

答案1

主机需要在域的 DNS 中注册其 IPv6 和 IPv4 地址,然后您才能对它们进行任何操作。

将 NFS 服务器加入域时,请确保启用自动 DNS 更新。这不是当前的默认行为(尽管实际上应该是)。例如:

ipa-client-install --enable-dns-updates

如果您已将服务器加入域,则需要重新配置它以更新 DNS。编辑/etc/sssd/sssd.conf并启用动态 DNS 更新。您可能还需要指定将发送 DNS 更新的 NIC。例如:

[domain/example.com]
dyndns_update = True
dyndns_iface = enp2s1

重新配置后,重新启动 sssdsystemctl restart sssd或重新启动计算机。

您也可以手动插入 DNS 记录,但这很快就会成为拥有 IPA 域可以解决的维护噩梦之一。

相关内容