rpm -q bind
(on RPM distributions such as RedHat, SuSE, mandrake, caldera), or you can check if the file /usr/sbin/named is there. You must check that because most distribution won't install this package by default.
If it it not installed, here is a recipy for redhat users
mount /mnt/cdrom rpm -i /mnt/cdrom/RedHat/RPMS/bind-8*rpm
You can do it either from the command line:
linuxconf --setmod dnsconf
or from the user interface in control/control file & system/ Linuxconf modules. Check the check-box and restart Linuxconf.
Visit the "domain name server" menu in the networking/ server tasks area. Select "config/configure domains" and add one domain. In the form, enter the domain name as the first line. All the other lines are ok. You may want to check the help to learn what they mean.
Create as many domain as you need. If you are on the Internet, do not forget to register those domains and point them to your server. You will need a secondary as well. Enter the name of the secondary DNS in the form (in the name server(NS) area).
This is done by the second entry in the dns configurator. It is like a domain name except that you must enter the prefix of the IP network. For example, for the network 192.168.1.0, you enter 192.168.1. For the network 10.0.0.0, you enter 10.
visit this dialog and read the help. This allows Linuxconf to properly suggest available IPs when defining new machines in the DNS.
Select the Add/edit host information by domain. Pick a domain and add machines. Enter a name and you will see a large dialog. This dialog is used to create both machine entries and sub-domain. For machine entries, you only need to enter their IP numbers (up to four). If you have defined the allocation ranges, then you can click on the help list (or ctrl X in text mode) to get the first available IP number in each range.
Quit from Linuxconf, or select the "Act/changes" button and you will have a DNS.
Fix the configuration of all station, including the server so it uses that DNS. On the server, you can enter 127.0.0.1 as the DNS (in Client tasks/name server specification).