a small list of 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):
You can check if a dns is working for you with, for example:
nslookup slashdot.org 8.8.8.8
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
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
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