Link to home
Start Free TrialLog in
Avatar of Andrej Pirman
Andrej PirmanFlag for Slovenia

asked on

How to discard old DNS A and PTR records on AD domain DHCP server

Hi,

on plenty of AD domain controllers I have the same issue:
local domain DNS records keep old combination of IP-ComputerName combination active in both, A-record and PTR-record. So I have under domain A-records the same NetBIOS computer name resolving to multiple IP addresses, and under reverse zone PTR having single IP resolving to multiple different NetBIOS computer names.
This is because clients were assigned new IP over years of usage, but old A and PTR records did not get deleted.
So PING and NSLOOKUP and NSLOOKUP "set type=ptr" all return mixed outputs. For some clients, which are always powered ON, results are correct, but for most of notebooks, returned values are not consistent.

But I have "Discard old PTR and A records" ENABLED, and "Update DNS entries for DHCP clients" also ENABLED under properties of DHCP server.
I also have "Remove stale records" ENABLED and set to 2-7 days.
Why do these old records not get deleted? How to set it up to work properly?
This is an issue on both, Server 2003 and Server 2008 domain, multiple installations, even on SBS 2008.

 DNSissue1.jpg DNSissue2.jpg
Avatar of Maen Abu-Tabanjeh
Maen Abu-Tabanjeh
Flag of Jordan image

Avatar of Andrej Pirman

ASKER

I did. So what's my sin? Which setting I set wrong?
Turns out the 'DNS dynamic updates registration credentials' setting in DHCP had invalid creds. The password had been changed on the account that was specified so when DHCP tried to update the records it was failing. Have created a DNS service account so this won't happen again.
go to then click credentials then re-type  user name -password - domain , then restart DHCP server .. it will work fine
ASKER CERTIFIED SOLUTION
Avatar of Krzysztof Pytko
Krzysztof Pytko
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This is the solution from your link:

Scavenging is set in three places on a Windows Server:

    - On the individual resource record to be scavenged.
    - On a zone to be scavenged.
    - At one or more servers performing scavenging.

It must be set in all three places or nothing happens.