/etc/namedb/mydomain.db
fileBy default the DNS server ('/usr/sbin/named
') is not started when the system boots. You can modify this behavior
by changing a single line in '/etc/sysconfig
' as follows:
Using the 'ee
' editor, load /etc/sysconfig
. Scroll down approximately 200 lines until you come to the section that says:
<hr>
--- # Set to appropriate flags for named, if you have a full-time # connection to the Internet. # For most hosts, flags should be "-b /etc/namedb/named.boot" namedflags="NO" ---<hr> Change this section to read: <hr>
--- # Set to appropriate flags for named, if you have a full-time # connection to the Internet. # For most hosts, flags should be "-b /etc/namedb/named.boot" namedflags="-b /etc/namedb/named.boot" ---<hr> Save the file and reboot.
Alternatively, start the Name Server daemon by entering the following command: <hr>
# named -b /etc/namedb/named.boot<hr>
Whenever you modify any of the files in /etc/namedb
you'll need to kick-start the Name Server process to make it pick up the
modifications. This is performed with the following system command:
<hr>
# kill -HUP `cat /var/run/named.pid`<hr>
/etc/namedb/mydomain.db
file