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.

Is there anyway to force scavenging on the DNS servers?

LVL 24
Mohammed HamadaSenior IT ConsultantAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Randy DownsOWNERCommented:
You may want to edit the DNS records manually. How many of the machines run DNS? Have you disabled wireless?
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.
Randy DownsOWNERCommented:
Sounds like a good plan
Redefine Your Security with AI & Machine Learning

The implications of AI and machine learning in cyber security are massive and constantly growing, creating both efficiencies and new challenges across the board. Check out our on-demand webinar to learn more about how AI can help your organization!

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.

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 ?
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mohammed HamadaSenior IT ConsultantAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.