Avatar of dannyboy266
dannyboy266Flag for Afghanistan

asked on 

How to cleanup DNS?

For some reason whenever I scavenge DNS, duplicate and triplicate entries for dozens of users show up, and all the sudden I have 40 computers fighting for 10 ip addresses.  Is there a way to start DNS from scratch in a timely efficient manner?  If I deleted all but a few static records would they rebuild themselves according to what is seen in DHCP?
DNSDHCPWindows Server 2003

Avatar of undefined
Last Comment
Chris Dent
Avatar of dfxdeimos
dfxdeimos
Flag of United States of America image

You could remove all of the dynamically created records and then execute "ipconfig /registerdns" with PSExec ( http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx ) against a text file with all your computer names in it.
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image


You've got DHCP updating DNS at the moment then? If so, /registerdns really won't help.

Is what's in DHCP incorrect?

Chris
Avatar of dannyboy266
dannyboy266
Flag of Afghanistan image

ASKER

Everything in DHCP looks accurate.  Everybody's IP looks normal, and there aren't any duplicates.  Only in DNS are there a massive amount of duplicate ip's for different computer names.
SOLUTION
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of dannyboy266
dannyboy266
Flag of Afghanistan image

ASKER

They come from DHCP with a lease, but it seems like if I restart the dhcp service for any reason and scavenge dns, all of these erroneous entries start popping up.
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image


The duplicates can't come from DHCP Leases though, unless you have an exceptionally short Lease? Even then I assume you've set DHCP to discard the records when it's done with them?

Chris

Avatar of dannyboy266
dannyboy266
Flag of Afghanistan image

ASKER

Yeah DHCP looks as clean as can be, which is the confusing part.  It all started when I enabled scavenging in DNS to try and clear out old entries, and it started deleting ones that I was using.
ASKER CERTIFIED SOLUTION
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image


Oh and I realise that doesn't really address the appearance of duplicates. I'm wondering if DHCP is pushing those in, even if they're not listed.

Does it only ever happen after you restart the DHCP service?

Chris
Avatar of dannyboy266
dannyboy266
Flag of Afghanistan image

ASKER

Right now my no-refresh and refresh intervals are set to 1 day, is this ok?  Also, this duplicate issue seems to happen after I manually scavenged stale records.
SOLUTION
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of dannyboy266
dannyboy266
Flag of Afghanistan image

ASKER

How do i check the DNS replication zone?

Avatar of dannyboy266
dannyboy266
Flag of Afghanistan image

ASKER

Right now in the DHCP - DNS tab, it's set to

"enable DNS dynamic update", and with option "always dynamically update DNS A and PTR records"
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image


At the top of the Properties page for the zone if you open that up from the DNS Console.

Yeah, we can quickly figure out if the pollution is coming from DHCP if we disable the options you've highlighted above. It would be worth checking, if only for the sake of a quick test.

Chris
Avatar of dannyboy266
dannyboy266
Flag of Afghanistan image

ASKER

It's set to "To all domain controllers in the AD domain"  we only have 1 DC however
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image


Ahh okay, then it'll be in AD Users and Computers, under System \ MicrosoftDNS (you'll only see them with View / Advanced Features turned on).

Chris
Avatar of dannyboy266
dannyboy266
Flag of Afghanistan image

ASKER

I found those entries, should i do anything with them?
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image


You see lots for systems that no longer exist? That is, you see the records that keep reappearing and really shouldn't?

Chris
Avatar of dannyboy266
dannyboy266
Flag of Afghanistan image

ASKER

Everything on that list seems pretty accurate.  There are only a few entries that shouldn't be there.
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image


Okay, that suggests that the odd data we're seeing isn't going from AD. There will be a few odd records in there, don't worry too much about them.

If it comes down to it we can clean the zone out of AD entirely and start again with it.

Mind trying turning off the DHCP updates (the options you found above), then re-run scavenging?

Chris
Avatar of dannyboy266
dannyboy266
Flag of Afghanistan image

ASKER

Yeah I'll turn off the updates and re-run scavenging, but I'm going to wait until Friday morning.  I don't have to work tomorrow, and I don't want to plant a bomb that has half the company calling me :P
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image


hehe I can appreciate that :) Have a good day off :)

Chris
Windows Server 2003
Windows Server 2003

Windows Server 2003 was based on Windows XP and was released in four editions: Web, Standard, Enterprise and Datacenter. It also had derivative versions for clusters, storage and Microsoft’s Small Business Server. Important upgrades included integrating Internet Information Services (IIS), improvements to Active Directory (AD) and Group Policy (GP), and the migration to Automated System Recovery (ASR).

129K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo