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--
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.
Nothing beats knowledge and skill on the CLI (go IOS!), but for GUI-lovers – like Orangehat mentioned – Webmin is a great tool…