Public DNS Server Tool

Public DNS Server Tool is a small utility for changing the DNS servers in Windows XP, Vista, 7, 8, 8.1 and 10 on the fly.

Cloudflare DNS

In the past few years, many public DNS servers have been made available for everyone’s use. Some of them are Cloudflare DNS, OpenDNS, Google, Norton, Comodo Secure etc. These DNS servers offer many security and protection layers in addition to being very fast. Even though these public DNS servers are available for everyone’s use, setting up DNS servers in Windows is not an easy task. Therefore, I have created this little tool Public DNS Server Tool, using which you can easily set the domain name servers in Windows.

It has been tested to work in Windows XP Professional SP3 (32-bit), Windows Vista SP2 (32-bit), Windows 7 (32-bit), Windows 8 (64-bit) and Windows 10 (32-bit).

You can use a Public DNS Server Tool to quickly switch to a preset pair of public DNS servers. Currently, it has sixteen preset pairs of DNS servers —

  1. Google Public DNS
  2. Cloudflare DNS
  3. Verisign DNS
  4. OpenDNS
  5. OpenDNS FamilyShield (blocks sites inappropriate for family)
  6. Yandex Basic DNS
  7. Yandex Safe DNS
  8. Yandex Family DNS
  9. Norton ConnectSafe A (blocks malicious sites)
  10. Norton ConnectSafe B (blocks malicious sites + obectionable sites)
  11. Norton ConnectSafe C (blocks malicious sites + objectionable sites + non-family sites)
  12. Comodo Secure DNS (blocks malicious sites)
  13. Neustar General
  14. Neustar Threat Protection
  15. Neustar Family Secure
  16. Neustar Business Secure

Backup and Restore

Public DNS Server Tool allows you to backup your DNS server settings. To backup, select Backup → Backup from the menubar. It would ask you a location where you want to save the backup file. The backup file is automatically named with current date and time in the DD-MM-YYYY HH-MM-TT format. The backup file is in the standard Registry script (.REG) format, so you can just double-click on it to restore the DNS server settings inside it. However, it also allows you restore DNS setting from within the Public DNS Server Tool. To restore, select Backup → Restore from the menubar. It would ask you to select a backup REG file. The entries inside the reg file would be automatically inserted into the Windows Registry and DNS servers would be updated.

Setting up public DNS servers

  1. Download Public DNS Server Tool to your computer.
  2. Unzip it to any folder you want on your hard disk.
  3. Run Public DNS Server Tool by double-clicking on PublicDNS.exe. Since this tool makes changes to your DNS server settings, it requires administrator privileges. If you are running Windows XP, then you should be logged in as an administrator. If you are running Windows Vista, Windows 7, Windows 8 or Windows 10, then you will be shown UAC (User Account Control) and would be asked to provide administrator login.
  4. First of all backup your current DNS servers by selecting Backup → Backup from the menubar. This is very useful if you later want to restore your original DNS servers.
  5. Choose your Network Interface Card (NIC) from the dropdown list box. If you have only one NIC, then it will be pre-selected. As you select a NIC card, the current DNS server configured for the selected NIC would be shown in big blue text. You can select the checkbox labeled Select all to select all the NIC cards in your system.
  6. Choose a set of public DNS servers from the list. As you select a DNS server, their description would be visible below the list. From the description, you can learn about what benefits a DNS server provides. The website of the selected DNS server is also given.
  7. Finally, click on the Change button at the bottom of the window. It would take a few seconds to change the DNS servers. If even after changing the DNS servers, you see your browser using previous DNS servers, then either press Ctrl + F5 to reload the webpage or restart your web browser.

Please note that DNS server settings are changed only for the selected network interface card. If you have more than one network interface cards, then you should choose the one you use to connect to the internet. You can also choose all the NIC cards, by selecting the checkbox labeled Select all. This way you can change the DNS servers for all the NIC cards in a single click.

If even after changing the DNS servers, you see your browser using previous DNS servers, then close and restart your browser again. If even after restarting the browser, changed DNS servers are not being used, then you may have to restart the Windows.

Adding More Servers to servers.ini

Starting from the version 2.1, Public DNS Server Tool stores all the server data in the servers.ini file. If this file does not exist in the same folder as the PublicDNS.exe, then it creates a default servers.ini file loaded with eight well-known publicly available DNS servers. But if you want to add more DNS servers, then you can simply edit this file and add more servers.

For example, suppose you want to add DNS servers from your own ISP (say RoadRunner) and their primary DNS server is, and secondary DNS server is Then just open the servers.ini file in Notepad and add the following at the end of the file :


There should be no space between ‘address’ and ‘=’, or it will fail to load. You will have to close Public DNS Server Tool and restart it so that it can load newly added servers from the servers.ini file.


  1. hello
    i have a desktop pc and am under windows10 pro 64bit
    -I live in France.I have an internet box sfr nb6
    -I want to use the cloudflare dns: and
    -I have a dynamic IP address that changes every 3 weeks / 1 month
    I want to use your software public dns server tool. Will public dns server tool work well with my dynamic IP address?

    Thank you in advance for your answer

  2. Would be much nicer to have the ability to edit the .ini right from the GUI rather than hand edit an ini.

  3. don’t go russia yandex DNS, it is very danger,

    it sudden pop up rus malware advertisements without warning

    even if i use ublock origin

    my firewall detect it is malware advertisements

  4. Hi,
    Thanks for the great tool. If possible please add option to..
    a) purge the DNS Cache
    b) Clear DNS cache automatically on each DNS change
    c) Option for user to Add/Delete Custom DNS Server addresses

    1. Thanks for the suggestions. DNS cache is auto-cleared after every DNS change, but individual applications like web browsers might hold their own DNS cache of a few websites. For this, you have to restart those applications. All applications have their own ways of handling the DNS cache.

      You can manually edit servers.ini to add/delete custom DNS servers. But I will try to add it on the right-click menu as soon as I get some free time. Thanks again.

  5. Hi,
    the tool was still at version v2.2, and the preset dns servers does not include cloudflare’s
    Hoping for your new version to be published.

    1. Thanks for letting us know. We linked the wrong version by mistake. Now it is downloading newer version 2.3. Thanks again.

  6. Hi !I am a common user without knowing much about computers I did not back up at first but afterwords but that is not my server anymore. Any help to bring back my server ? Thank you !

    1. Don’t worry. Google’s DNS ( or OpenDNS ( work for everyone. And if you want your ISP’s DNS then you can find the information on your ISP’s website or call them on their helpline number.

  7. Hi,
    nice new web page 🙂 but therewith be remove the comment also : too bad .. how ever.. can you add on the DNS-Server-Tool an textbased listing where can add or configuration his own dns-servers ?
    best regards

Comments are closed.