Q. How do I setup DNS Lookup under any Linux distribution ?
A. When an application (such as mail client or browser) makes a request which requires a DNS lookup, such programs send a resolution request to the local DNS resolver in the local operating system, which in turn handles the communications required. Under Linux resolver is configured via /etc/resolv.conf file. Open this file as a root user, enter:
# vi /etc/resolv.conf
Append or modify as follows into the file:
Save and close the file. Replace nixcraft.com with your actual domain name. 184.108.40.206 is first name server address. Save and close the file. Test setup, enter:
$ host cyberciti.com
$ host -t ns cyberciti.com
cyberciti.com name server ns2.nixcraft.net. cyberciti.com name server ns1.nixcraft.net. cyberciti.com name server ns3.nixcraft.net.Share this tutorial on: