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 are not clear whether you are configuring client or server. you need to edit this file: etc/resolv.conf #vi /etc/resolv.conf 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. Login as the root, enter: # vi /etc/resolv.conf
OR
$ sudo vi /etc/resolv.conf
Modify or enter nameserver as follows:
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
|
|
|