Page 109 - DCAP602_NETWORK_OPERATING_SYSTEMS_I
P. 109
Unit 6: Domain Name System
Downloading and Installing the BIND Packages notes
Most RedHat and Fedora Linux software products are obtainable in a package format. When
searching for the file, remember that the BIND package’s filename usually starts with the word
“bind” followed by a version number, as in bind-9.2.2.P3-9.i386.rpm.
Note Unless otherwise stated, the sample configurations covered in this unit will be
for Redhat/Fedora distributions.
How to get BinD started
Setting up your DNS server is easy to do, but the procedure differs between Linux distributions.
redhat / fedora
You can use the chkconfig command to get BIND configured to start at boot
[root@bigboy tmp]# chkconfig named on
To start, stop, and restart BIND after booting, use:
[root@bigboy tmp]# /etc/init.d/named start
[root@bigboy tmp]# /etc/init.d/named stop
[root@bigboy tmp]# /etc/init.d/named restart
Remember to restart the BIND process every time you make a change to the configuration file for
the changes to take effect on the running process.
Debian / ubuntu
You can use the sysv-rc-conf command to get BIND configured to start at boot
[root@bigboy tmp]# sysv-rc-conf bind on
To start, stop, and restart BIND after booting, use
[root@bigboy tmp]# /etc/init.d/bind start
[root@bigboy tmp]# /etc/init.d/bind stop
[root@bigboy tmp]# /etc/init.d/bind restart
However the startup script and installation package name refers to bind, the name of the daemon
that runs is named just like it is with Redhat / Fedora. Also remember to restart the BIND process
every time you make a change to the configuration file for the changes to take effect on the
running process.
the /etc/resolv.conf file
DNS clients (servers not running BIND) use the /etc/resolv.conf file to conclude both the location
of their DNS server and the domains to which they belong. The file generally has two columns;
the first contains a keyword, and the second contains the desired values separated by commas.
LoveLy professionaL university 103