Skip to content

How to Setup DNS client / Name Server IP?

May 23, 2012

As I already write so many posts about DNS and its working so you can read them by surfing blog. Domain name converts the name of website (http://www.a7host.com) to an IP address (173.0.139.139). A web address or IP address is not only the name of website but helps to route traffic over internet.
Today I am going to post about DNS configuration.

New users of linux find it difficult to setup / modify name server addresses with Name servers (NS1 / NS2). Use /etc/hosts file for small and local resolution files. As we know domain name servers are responsible for website names like a7host.com of IP address 173.0.139.139 because it is easy to remember a name instead of IP address. To configure Linux DNS, we have to modify /etc/resolv.conf file. This file describe about name servers to use. We need to point out with ISP and DNS servers to setup linux and network services like www or smtp.

We have to modify resolv.conf to set name of IP address and resolv.conf contains the IP address of name servers (DNS name resolvers) that helps to translate name into IP (internet protocol) for available node on the network.

Setup DNS Name resolution

Use (su) command to login into root folder to setup linux as DNS client.
Step # 1: Open /etc/resolv.conf file:
# vi /etc/resolv.conf

Step #2: Add your ISP nameserver as follows:

search isp.com
nameserver 202.54.1.110
nameserver 202.54.1.112
nameserver 202.54.1.115
Note Max. three name server can be used/defined at a time.

Step # 3:Test setup ns lookup or dig command:

$ dig http://www.nixcraft.com
$ nslookup http://www.nixcraft.com

Here are some more glossary terms to understand.

DNS Client: – DNS client is responsible to configure file /etc/resolv.conf, which defines the IP address of DNS server.

Bind: – Bind is the suite of DNS related software’s that runs under linux and acronym of Berkeley Name Domain Project.

Advertisements

From → web hosting

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: