Windows Server - DHCP/DNS Updates - purging outdated DNS records
We have Windows 2008 Servers running and providing DHCP and DNS Services to the network. So far everything is working great.
The problem is, the clients which are provided with IPs from DHCP are automatically listed in DNS with their respective hostnames. Clients are listed 2-4 times with the same name but different IPs. There is always one right IP/hostname combination and 2-4 outdated one.
Is there any easy automated way to get rid of all the outdated ones? I assume there must be some way of making an expiration time in the DNS when outdated records get purged?
Solution 1:
Yes, you can change the aging settings as in the screenshot. Expand the domain in the left column, right-click and go to properties, then from the general tab, click aging. From the help file:
No-refresh interval Specifies an interval of time, in either days or hours. When a resource record is refreshed, it is not refreshed again until this interval of time has elapsed.
Refresh (interval) Specifies the minimum time that records are expected to remain in the DNS database after the no-refresh interval expires.
This interval should not be smaller than the maximum refresh period for any resource records. In most networks, this interval corresponds to the Dynamic Host Configuration Protocol (DHCP) lease renewal interval. For DHCP servers running Windows Server 2008, the default lease renew interval is four days.
In other words, if you set it too low, without DCHP trying to renew its settings, there is no way for a client computer to automatically re-register the DNS.
Solution 2:
Have a read here for a detailed explanation of scavenging:
http://blogs.technet.com/b/networking/archive/2008/03/19/don-t-be-afraid-of-dns-scavenging-just-be-patient.aspx