≡ Menu

Ubuntu / Debian: Restart Named Service Command

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

Sysadmin because even developers need heroes!!!

Share this tutorial on:
{ 0 comments… add one }
Security: Are you a robot or human?

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">


   Tagged with: , , ,