I'm setting up a CentOS 7.2 server for VDI that gets automatically joined to a Microsoft 2008 R2 domain (the DCs are actually 2012 R2). The Active Directory join runs fine via the script using "net ads join -U 'Administrator%Passw0rd'"—I've verified it's working with net ads testjoin, net ads info, and wbinfo -u. However, DNS registration fails immediately during the join process with a "DNS update failed!" error.
When I try to register the Linux host manually using "net ads dns register -U 'Administrator%Passw0rd'", it succeeds only every third attempt:
[root@vW-CentOS7-001 administrator]# net ads dns register -U 'Administrator%Passw0rd' DNS Update for vw-centos7-001.lab.mycompany.ch failed: ERROR_DNS_UPDATE_FAILED
DNS update failed!
[root@vW-CentOS7-001 administrator]# net ads dns register -U 'Administrator%Passw0rd'
DNS Update for vw-centos7-001.lab.mycompany.ch failed: ERROR_DNS_GSS_ERROR
DNS update failed!
[root@vW-CentOS7-001 administrator]# net ads dns register -U 'Administrator%Passw0rd'
Successfully registered hostname with DNS
[root@vW-CentOS7-001 administrator]# net ads dns register -U 'Administrator%Passw0rd'
DNS Update for vw-centos7-001.lab.mycompany.ch failed: ERROR_DNS_UPDATE_FAILED
DNS update failed!
[root@vW-CentOS7-001 administrator]# net ads dns register -U 'Administrator%Passw0rd'
DNS Update for vw-centos7-001.lab.mycompany.ch failed: ERROR_DNS_GSS_ERROR
DNS update failed!
[root@vW-CentOS7-001 administrator]# net ads dns register -U 'Administrator%Passw0rd'
Successfully registered hostname with DNS
...
Any help with resolving this intermittent DNS registration issue would be greatly appreciated.
Source: Server Fault Archive (CC BY-SA 4.0)