Page 177 - DCAP106_OPERATING_SYSTEM_TOOLS
P. 177
Operating System Tools
Notes Server: 192-168-1-200.my-site.com
Address: 192.168.1.200
Name: 65-115-71-34.my-isp.com
Address: 220.227.168.115
C :\>
10.1.2 Downloading and Installing the BIND Packages
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.
How to Get BIND Started
Setting up your DNS server is easy to do, but the procedure differs between Linux distributions.
z z 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.
z z 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.
z z 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.
170 LOVELY PROFESSIONAL UNIVERSITY