cms 54 asked:
I’m having an issue with adding NFS services to IPA server (after login to the IPA server and kinit admin). When I execute the line below:
[root@ipa ~]# ipa service-add nfs/server1.example.com
I’m getting the error
ipa: ERROR: Host does not have corresponding DNS A/AAAA record
I have configured the 3 servers correctly and installed FreeIPA in IPA server
My IPA server config
IP4.ADDRESS 192.168.1.105/24 IP4.GATEWAY:192.168.1.1 ipv4.dns:184.108.40.206 [root@ipa ~]# vim /etc/resolv.conf # Generated by NetworkManager search example.com nameserver 220.127.116.11
also config server1 correctly
[root@ipa ~]# ipa host-show Host name: server1 Host name: server1.example.com Principal name: host/server1.example.com@EXAMPLE.COM Password: False Keytab: False Managed by: server1.example.com
Hosts need to have their IPv6 and IPv4 addresses registered in the domain’s DNS before you can do much of anything with them.
When you join the NFS server to the domain, ensure that you enable automatic DNS updates. This is not currently the default behavior (though it really should be). For example:
If you’ve already joined the server to the domain, then you’ll need to reconfigure it to update DNS. Edit
/etc/sssd/sssd.conf and enable dynamic DNS updates. You may also need to specify the NIC for which DNS updates will be sent. For example:
[domain/example.com] dyndns_update = True dyndns_iface = enp2s1
Once reconfigured, restart sssd with
systemctl restart sssd or restart the computer.
You could also manually insert DNS records, but this very quickly becomes one of the maintenance nightmares that having an IPA domain solves.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.