Skip to content

Instantly share code, notes, and snippets.

@yunga
Created April 8, 2015 17:17
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save yunga/87283fe5e90bd180f0b4 to your computer and use it in GitHub Desktop.
Save yunga/87283fe5e90bd180f0b4 to your computer and use it in GitHub Desktop.
a small list of free DNS servers

Free DNS Servers

Free DNS Servers

         Host           |             DNS  |             DNS
       -----------------|-----------------:|-----------------:
         [ARN-FAI]      |   89.234.141.66  |
         [Comodo]       |     8.20.247.20  |      8.26.56.26
         [DNSAdvantage] |    156.154.70.1  |    156.154.71.1
         [DNSWatch]     |    84.200.69.80  |    84.200.70.40
         [DynDNS]       |   216.146.35.35  |   216.146.36.36
         [FDN]:         |    80.67.169.12  |    80.67.169.40
         [Google]:      |         8.8.4.4  |         8.8.8.8
         [GreenTm]:     |   81.218.119.11  |  209.88.198.133
         [LDN-FAI]      |   80.67.188.188  |
         [Norton]:      |   198.153.192.1  |   198.153.194.1
                        |   199.85.126.10  |   199.85.127.10
         [OpenDNS]:     |  208.67.220.220  |  208.67.222.222
         [OpenNIC]:     |       23.90.4.6  |   216.87.84.211
         [Verizon]:     |         4.2.2.1  |         4.2.2.2
                        |         4.2.2.3  |         4.2.2.4
                        |         4.2.2.5  |         4.2.2.6

Older DNS Servers (or currently down):

  • Epimeros.org: 46.4.27.2
  • GeekNode.org: 81.93.248.69 81.93.248.68 91.194.60.196 193.17.192.53
  • LegTux.org: 88.190.27.51
  • ScrubIT.com: 67.138.54.100 207.225.209.66
  • Telecomix.org: 91.191.136.152 85.229.85.109

You can check if a dns is working for you with, for example:

nslookup slashdot.org 8.8.8.8

Changing DNS Servers

On Windows

With Cmd

Find out the name of your network connection and the current dns server with:

C:\Users\Administrator> netsh interface ipv4 show dnsservers

Configuration for interface "Ethernet"
    DNS servers configured through DHCP:  192.168.1.1
    Register with which suffix:           Primary only

Configuration for interface "Wi-Fi"
    DNS servers configured through DHCP:  8.8.8.8
                                          8.8.4.4
    Register with which suffix:           Primary only

Now change the dns server for the "Ethernet" interface:

netsh interface ipv4 set dnsservers "Ethernet" static 8.8.8.8

Eventually add several servers:

netsh interface ipv4 add dnsservers "Ethernet" 8.8.8.8 index=1
netsh interface ipv4 add dnsservers "Ethernet" 8.8.4.4 index=2
netsh interface ipv4 add dnsservers "Ethernet" 192.168.1.1 index=3

Should you restore your default/router settings:

netsh interface ipv4 set dnsservers "Ethernet" dhcp

With Powershell

You can list interface and dns servers with:

PS C:\Users\Administrator> Get-DnsClientServerAddress

InterfaceAlias               Interface Address ServerAddresses
                             Index     Family
--------------               --------- ------- ---------------
Local Area Connection* 2             7 IPv4    {}
Local Area Connection* 2             7 IPv6    {fec0:0:0:ffff::1, fec0:0:0:ffff::2, fec0:0:0:ffff::3}
Ethernet                             3 IPv4    {192.168.1.1}
Ethernet                             3 IPv6    {}
Wi-Fi                                4 IPv4    {8.8.8.8, 8.8.4.4}
Wi-Fi                                4 IPv6    {}
Loopback Pseudo-Interface 1          1 IPv4    {}
Loopback Pseudo-Interface 1          1 IPv6    {fec0:0:0:ffff::1, fec0:0:0:ffff::2, fec0:0:0:ffff::3}
Local Area Connection* 4             6 IPv4    {}
Local Area Connection* 4             6 IPv6    {}
isatap.home                          5 IPv4    {192.168.1.1}
isatap.home                          5 IPv6    {}

Now set the dns servers for the "Ethernet" interface:

Set-DnsClientServerAddress "Ethernet" -ServerAddresses ("8.8.8.8","8.8.4.4", "192.168.1.1")

Should you restore your default/router settings:

Set-DnsClientServerAddress "Ethernet" -ResetServerAddresses

On Linux

Edit /etc/resolv.conf

nameserver 8.8.8.8 #1
nameserver 8.8.4.4 #2

Or (ubuntu) /etc/dhcp/dhclient.conf, note the reversed order.

prepend domain-name-servers 8.8.4.4; # 2
prepend domain-name-servers 8.8.8.8; # 1

Then:

/etc/init.d/networking restart

See also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment