How do I restart named (Internet domain name server) from ISC using command line option under Debian or Ubuntu Linux server?
You can use a startup System V init script located in /etc/init.d/ directory. Another option is to use the service command to start / stop / restart named service under Debian or Ubuntu Linux based system. The name of the script is:
The name of the service is:
Open a terminal and type the following command as as a root users.
Start named service
$ sudo service bind9 start OR $ sudo /etc/init.d/bind9 start
Stop named service
$ sudo service bind9 stop OR $ sudo /etc/init.d/bind9 stop
Restart named service
$ sudo service bind9 restart OR $ sudo /etc/init.d/bind9 restart
See the current status of named service
$ sudo service bind9 status OR $ sudo /etc/init.d/bind9 status Sample session outputs:
The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.