Monday, April 18, 2005

setting up DNS Server Resolution & /etc/resolv.conf

With Comcast's recent problems with their DNS servers and the spat of DNS server poisonings going around, I thought it would be a good idea to cover how to configure DNS servers within Linux and which files to configure.

DNS servers are what allow normal people to find web pages by typing in website names and having those anmes associated with an actual server located somewhere else in teh world.

The main file within Linus used for DNS resolution is the /etc/resolv.conf file. Servers that are checked for DNS settings are listed in this file. The format is similar to the following:
nameserver 208.164.186.1
nameserver 208.164.186.2
Each nameserver will be checked in the order they are listed here. The nameserver entry tells the IP address of the host to use for DNS queries. If it is set to 127.0.0.1 (which is the default) then the local name daemon is used that may use the /etc/hosts database to translate host names. The default nonamed name server can't look beyond the local network.

Here is a listing of DNS servers which you can plug in whenever you might be having problems:Some DNS servers I reccomend:
4.2.2.1 4.2.2.2 4.2.2.3
4.2.2.4 4.2.2.5 4.2.2.6
These are all DNS server addresses that resolve differently across the country.

dadkins See Profile adds these DNS servers:
SpeakEasy Nameservers
66.93.87.2 216.231.41.2 216.254.95.2
64.81.45.2 64.81.111.2 64.81.127.2
64.81.79.2 64.81.159.2 66.92.64.2
66.92.224.2 66.92.159.2 64.81.79.2
64.81.159.2 64.81.127.2 64.81.45.2
216.27.175.2 66.92.159.2 66.93.87.2

ORSC Public Access DNS Nameservers
199.166.24.253 199.166.27.253 199.166.28.10
199.166.29.3 199.166.31.3 195.117.6.25
204.57.55.100

Sprintlink General DNS
204.117.214.10 199.2.252.10 204.97.212.10

Cisco
128.107.241.185 192.135.250.69