Page 1 of 1

how to start or restart your dnsserver from shell.

Posted: Thu Nov 26, 2015 8:01 pm
by mach
BIND is by far the most widely used DNS software on the Internet. Use the following commands as per your Linux distro: first login as root from the shell than use this commands

[a] service service-name command.

/etc/init.d/service-name script command.

[c] rndc command - Name server control utility.
CentOS / RHEL / Fedora Linux

Type the following command to start BIND server:
# service named start

Type the following command to stop BIND server:
# service named stop

Type the following command to restart BIND server:
# service named restart

Type the following command to reload BIND server to reload zone file or config file changes:
# service named reload

Type the following command to see the current status of BIND server:
# service named status

You can also use the following syntax too:


/etc/init.d/named start
/etc/init.d/named stop
/etc/init.d/named restart


Debian / Ubuntu Linux

Type the following command to start BIND server:
# service bind9 start

Type the following command to stop BIND server:
# service bind9 stop

Type the following command to restart BIND server:
# service bind9 restart

Type the following command to reload BIND server to reload zone file or config file changes:
# service bind9 reload

Type the following command to see the current status of BIND server:
# service bind9 status