How to clean, scavange or refresh Hostnames with multiple IPs on DNS servers

Hello everyone,

I have a client that has about 600 machines that are domain joined, registered on the dns and 209 of them have multiple hostnames on the DNS with a different IP addresses due to having both Cable and wireless enabled. each get a different IP from a different subnet  get registered on the DNS and when swithing to the cable or wireless the hostname doesn't get updated on the DNS.

I have tried playing with the scavenging feature of the DNS and changed it to 1 hour for both refresh interval and no refresh interval and enabled it for all the zones. but it has not updated and the only event ID that I get is 2502 and 3150 which reports that there's an issue.

https://support.microsoft.com/en-us/kb/842463/

Is there anyway to force scavenging on the DNS servers?

Thanks
LVL 24
Mohammed HamadaSenior IT ConsultantAsked:
Who is Participating?
 
Mohammed HamadaSenior IT ConsultantAuthor Commented:
The scavenging took 3 days until it cleaned all the old/expired DNS records... I had the customer to setup the DHCP lease to 4 days so it doesn't keep the same IP for the same user more than 4 days.

It seems that there's no way to force scavenging to work until it passes the least scavenging date allowed on the DNS server.. when the day comes it can be forced using this command line

dnscmd <ServerName> /StartScavenging
0
 
Randy DownsOWNERCommented:
You may want to edit the DNS records manually. How many of the machines run DNS? Have you disabled wireless?
0
 
Mohammed HamadaSenior IT ConsultantAuthor Commented:
There are 2 DNS servers that run on the organization and about 600 machines across two locations. The next autoscavenging is going to occur tomorrow so I will wait and if not I am planning on manually cleaning the DNS using Advanced IP scanner and a script.
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
Randy DownsOWNERCommented:
Sounds like a good plan
0
 
Chris DentPowerShell DeveloperCommented:
Be mindful that setting your refresh / no-refresh intervals so low will mean records added by your servers and DCs will also be scavenged unless you've tweaked their default update intervals.

Chris
0
 
Mohammed HamadaSenior IT ConsultantAuthor Commented:
I set them both to one day and DHCP lease for 2 days. the users in this company keep switching between Wifi and Cable like crazy. so it has to be done in short time

I am just wondering the DNS's mechanism on registering the domain members (clients) after they are removed from the DNS server. how does that work exactly?

If a user lost his/her hostname on the DNS .. wouldn't there be any issue for the client ?
0
 
Mohammed HamadaSenior IT ConsultantAuthor Commented:
solved
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.