Ubuntu / Debian: Restart Named Service Command

Posted on in Categories , last updated April 27, 2013

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:

/etc/init.d/bind9

The name of the service is:

bind9

Examples

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:

Fig.01: Ubuntu Linux: Restart Named Service Command in Action
Fig.01: Ubuntu Linux: Restart Named Service Command in Action

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

Leave a Comment