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!
nub99Asked:
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.

TheCleanerCommented:
See this article:  http://support.microsoft.com/kb/818020/?sd=RMVP&fr=1

BTW, why would you want to remove them?
0
nub99Author Commented:
My domain is private and does not need to connect to the internet. So I don't need the root hints.
0
TheCleanerCommented:
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.
0

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
megonownoCommented:
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
0
TheCleanerCommented:
You are simply wanting to put in forwarders?  You don't need to remove the root hints for this.  Just add your forwarders.

dnscmd SERVERNAME /DsForwarder IPADDRESSOFFORWARDER1 IPADDRESSOFFORWARDER2

0
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.