How to delete root hints from command-line

I need to know how to delete the default root hints from my internal DNS server from command-line. The only way I've figured out is to delete them using the DNS Management console and then manually deleting the CACHE.DNS file.

Any help would be appreciated! Thanks again!
Who is Participating?
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.

See this article:

BTW, why would you want to remove them?
nub99Author Commented:
My domain is private and does not need to connect to the internet. So I don't need the root hints.
Well, there are quicker ways to prevent internet access, like just removing the internet connection.

As far as a command line tool, dnscmd is the basic tool for dns.  I think there is a way to do it using dnscmd, but that article above talks about the problems afterwards.

You can always just add a forward lookup zone with "." as the zone.  That basically makes your DNS server a top-level DNS server and it won't use forwarders or root-hints to try and resolve anything.

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
I need to be able to do this from a command line (dnscmd - most likely) to remove roothints from AD DC's and turning them into forwarders
You are simply wanting to put in forwarders?  You don't need to remove the root hints for this.  Just add your forwarders.


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
Windows Server 2003

From novice to tech pro — start learning today.

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.