• Increase font size
  • Default font size
  • Decrease font size
Tag:dns

 You are not clear whether you are configuring client or server.
If you configuring client then simply do the following steps:

vi /etc/resolv.conf
nameserver
:wq

 

you need to edit this file:

etc/resolv.conf

#vi /etc/resolv.conf

 

search local
nameserver 202.103.225.68
 

 

 A DNS is a Domain Name Server. A domain is the name of a website

The Domain Name Server plays an important role in making Internet traffic possible. A DNS server is part of a global network of servers that translate host names, like whatislinux.net, into numerical IP (Internet Protocol) addresses, like 67.20.97.125, which computers on the Net use to communicate with each other. This allows us to use easy to memorize or intuitive URLs and e-mail addresses instead of a long string of numbers.

 

 1. Enable DNS services.
2. Configure the `/etc/hosts'' file.
3. Configure `/etc/named.conf'' file.
4. Set up DNS tables in the ``var/named/'' directory.
5. Check for the named daemon is running.

1. Enable DNS services:- To enable DNS services, /etc/host.conf file should be look like below:

# Lookup names via /etc/hosts first, then by DNS query
order hosts, bind

2. Configure /etc/hosts file. :- For better performance you can add any hosts you access often like your local servers to avoid performing DNS lookups on them.

3. Configure `/etc/named.conf'' file:- This file should be configured in such a way that the DNS tables correctly. Named.conf file contains information about different type of views like localhost_reslover (for caching nameservers), internal (who are directly connecting through LAN interface), External (addresses that are not in your LAN interface subnets), logging, Options.

4. Set up DNS tables in /var/named directory:- Each domain will have its own DNS table file named as /var/named/domain.db. All the zones will be explained for a domain in this file.

5. Check for the named daemon is running:- This daemon usually starts upon system boot. You can also start and stop the daemon manually by typing ``named start'' and `named stop'' commands respectively.

 

 Login as the root, enter:

# vi /etc/resolv.conf
 
OR
$ sudo vi /etc/resolv.conf
Modify or enter nameserver as follows:
nameserver 202.103.227.68
nameserver 202.103.225.68
 
Save and close the file. To test DNS configuration type any one of the following command:
# host google.com
# ping www.bing.com
# nslookup www.bing.com
 
Read more...