5 pts.
 How to configure DNS server & client in Linux RedHat
How can I configure a DNS server & client in Linux RedHat?

Software/Hardware used:
ASKED: December 24, 2010  8:23 AM
UPDATED: May 7, 2013  6:12 PM

Answer Wiki:
First check the packages that are there
bind; bind-utils; bind-libs; bind-chroot;caching-nameserver.
Now reboot and start/stop/restart BIND as
# /etc/init.d/named start
# /etc/init.d/named stop
# /etc/init.d/named restart
Now open /etc/resolv.conf in your favorite editor and insert as
domain <machinename> for eg. mycomp
search <same name> net mycomp
nameserver <nameserverIP>
nameserver <nameserverIP> (maximum three allowed)
Now for caching nameserver entered as
nameserver 127.0.0.1
The main DNS configuration is kept in the file <b>/etc/named.conf </b>which is used to tell BIND where to find the configuration files for each domain you own. Here, locate the below line and change as....
zone "mycomp" IN { (here put the name instead of localhost)
type master;
file "mycomp.zone";
allow-update { none; };
};
Remember, By default, zone files are located in directory /var/named. Now test with dig or nslookup command. CAUTION: You have to change as your own requirement. For more complete info, check this out. Thanks--
Last Wiki Answer Submitted:  May 7, 2013  6:14 pm  by  Michael Tidmarsh   11,380 pts.
All Answer Wiki Contributors:  Michael Tidmarsh   11,380 pts. , Subhendu Sen   22,035 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

If you are at not easy with command line download webmin (www.webmin.com) and via it’s gui define dns and dhcp. Some examples to take a gander at:
http://doxfer.webmin.com/Webmin/DHCPServer
http://forums.devshed.com/dns-36/setting-up-dns-using-webmin-406190.html

I use command line but webmin allows me to have my cohorts (windows admins) do some of the changes when I’m on vacation.

 1,445 pts.

 

Nothing beats knowledge and skill on the CLI (go IOS!), but for GUI-lovers – like Orangehat mentioned – Webmin is a great tool…

 8,500 pts.