How to delete root hints from command-line

Posted on 2006-04-11
Last Modified: 2010-07-27
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!
Question by:nub99
    LVL 23

    Expert Comment

    See this article:

    BTW, why would you want to remove them?

    Author Comment

    My domain is private and does not need to connect to the internet. So I don't need the root hints.
    LVL 23

    Accepted Solution

    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.

    Expert Comment

    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
    LVL 23

    Expert Comment

    You are simply wanting to put in forwarders?  You don't need to remove the root hints for this.  Just add your forwarders.



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    by Batuhan Cetin Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home.…
    Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now