Link to home
Create AccountLog in
Avatar of Marc_Johnson
Marc_Johnson

asked on

DNS records not being discarded when DHCP assigns IP address

This morning we received reports from our help desk that when they tried to remote control a user's PC it was bringing up the wrong computer.  We pinged a few by name and found that they all resolved to an IP assigned to another user's computer.  We did an nslookup on these PCs and verified that there is only one IP assigned to the computernames.  We checked DNS and found that there are two A records with different computernames that have the same address (one timestamp is for today, the other computer's timestamp is a week old.  The DHCP lease duration is set to 1 day). So there isn't an IP conflict going on, it just looks like the records aren't being deleted from DNS when the DHCP lease expires and the IP is assigned to a new computer. We have DNS dynamic updates enabled in DHCP and it is set to discard A and PTR records when the lease is deleted.  When we manually delete the leased IP from DCHP and the records from DNS and have the user reboot their PC, the DNS record is recreated for the correct PC and it can be remoted into.  We're just confused as to why this began happening today (we've had no issues with this previously) and why the records aren't being deleted from DNS when the lease expires.  DNS Server event log shows no errors.  

We plan on deleting all the DHCP leases and DNS records (except for our servers obviously) after all our users are gone tonight but wanted to know if there is an easier/cleaner way to do this?
SOLUTION
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Marc_Johnson
Marc_Johnson

ASKER

Thanks Chris, we changed our DHCP lease to 8 days and are going to look into setting up aging & scavenging.  However, this doesn't explain the root of our issue: why the A records weren't discarded after the lease was deleted as it's configured to do in DHCP.  Starting this morning we've found numerous PCs that had 2 A records.  The DNS server event log shows no errors or warnings whatsoever.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.