Linux – Client DHCP on Linux seems to not be updating Windows AD DNS

dhcpdomain-name-systemlinuxnetworking

I have an odd DNS issue that only sometimes presents itself. I have several Linux machines, running Ubuntu (10.10, 11.10, 12.04). Most of the time they work flawlessly. Sometimes, however, the system gets an IP address from DHCP, but fails to update the DNS server with it's hostname and IP. All of the systems are using DHCP with default settings. Why do some work and some not? The SysAdmin who runs the DNS servers (Windows Server something) says that everything is fine, and any issues I'm having must be my fault. Any ideas?

This problem today prevents my team from being able to access our subversion server, and the (Linux) workstations can't connect to LDAP for user authentication. But, it worked last week and yesterday. However, the LDAP and Subversion servers are up with valid IPs, and can access other network resources and the Internet, but don't have an associated DNS entry. Besides from running my own separate DNS server, what's a Linux SysAdmin to do? The send host-name line in dhclient.conf does sent the system hostname.

Best Answer

I figured it out. I had to edit /etc/dhcp/dhclient.conf and update send host-name to send the fully qualified domain name. After that, DHCP leases are now reflected in DNS. Also, since I don't have access to Active Directory, I couldn't do that @kce had suggested.