Ipa Client Error/Warning = Command '/usr/bin/nsupdate -g /etc/ipa/.dns_update.txt' returned non-zero exit status -6
Date: 16 Dec 2013
Try to install ipa-client with command:
ipa-client-install --enable-dns-updates --mkhomedir -p admin -w xxxxyyyy
and got error / warning:
Failed to update DNS A record. (Command '/usr/bin/nsupdate -g /etc/ipa/.dns_update.txt' returned non-zero exit status -6)
Detail Output:
Discovery was successful!
Hostname: testserver3.ipa.xxxxxx.com
Realm: ipa.xxxxxx.com
DNS Domain: ipa.xxxxxx.com
IPA Server: svripampr01.ipa.xxxxxx.com
BaseDN: dc=ipa,dc=xxxxxx,dc=co,dc=id
Continue to configure the system with these values? [no]: yes
Synchronizing time with KDC...
Enrolled in IPA realm ipa.xxxxxx.com
Created /etc/ipa/default.conf
Configured /etc/sssd/sssd.conf
Configured /etc/krb5.conf for IPA realm ipa.xxxxxx.com
Warning: Hostname (testserver3.ipa.xxxxxx.com) not found in DNS
Failed to update DNS A record. (Command '/usr/bin/nsupdate -g /etc/ipa/.dns_update.txt' returned non-zero exit status -6)
Failed to stop the nscd daemon
SSSD enabled
NTP enabled
Client configuration complete.
Expected Result:
No Error, warning
Responses
Does your SOA for the ipa.xxxxxx.com domain allow dynamic updates? Is your SOA your IdM host, or are you using an existing name server?
Depending on how you set up your environment, you may need to update your /etc/resolv.conf to point to your IdM hosts (instead of existing/legacy name servers you had).
If your DNS configuration is correct on the client and you are pointing at your IdM systems, I would check if SElinux is enabled on that systems (and make sure it allows dynamica updates to zone files) and also check the basic file level permissions. I assumed that the IdM installation would have taken care of such things, so I am not confident that is the issue.
Also, if you could post the output from your client for these commands:
nslookup -type=SRV _ldap._tcp.example.com
host -t SRV _ldap._tcp.example.com
dig SRV _kerberos._udp.example.com
That may help us determine where the issue is.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
