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
Even though 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.
No comments:
Post a Comment