BIND is most widely DNS server software on the internet. Following are the basic commands which can be used in Linux distro:
1. service service-name [start|stop|restart] command.
2. /etc/init.d/service-name [start|stop|restart] script command.
3. systemctl [start|stop|restart] service-name command.
4. rndc command – Name server control utility.
CentOS / RHEL / Fedora Linux using the service command
You can start/stop/restart DNS service (BIND) via SSH using following commands on CentOS / RHEL / Fedora Linux:
To start DNS service (named) via SSH:
/etc/init.d/named startTo stop DNS service (named) via SSH:
/etc/init.d/named stopTo restart DNS service (named) via SSH:
/etc/init.d/named restartTo check current status:
/etc/init.d/named statusYou can also use the following commands to start / stop / restart BIND DNS service:
service named startservice named stopservice named restartTo reload BIND server to reload DNS zone or configuration file changes, use the following command:
service named reloadUse the following command to see the current status of BIND server:
service named statusSystemd users need to use the systemctl command:
systemctl stop named
systemctl start named
systemctl restart named
systemctl status namedDebian / Ubuntu Linux
Type the following command to start BIND server:
service bind9 startType the following command to stop BIND server:
service bind9 stopType the following command to restart BIND server:
service bind9 restartTo reload BIND server to reload DNS zone or configuration file changes, use the following command:
service bind9 reloadUse the following command to see the current status of BIND server:
service bind9 statusYou can also use the following commands Debian / Ubuntu:
/etc/init.d/bind9 start
/etc/init.d/bind9 stop
/etc/init.d/bind9 restart
/etc/init.d/bind9 statusSystemd users need to use the systemctl command:
systemctl stop bind9
systemctl start bind9
systemctl restart bind9
systemctl status bind9Please note, you will need root access of the server to restart DNS/named service. If you have other questions related to DNS server, you can join our community forum.
