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:


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
$ sudo /etc/init.d/bind9 start

Stop named service

$ sudo service bind9 stop
$ sudo /etc/init.d/bind9 stop

Restart named service

$ sudo service bind9 restart
$ sudo /etc/init.d/bind9 restart

See the current status of named service

$ sudo service bind9 status
$ sudo /etc/init.d/bind9 status
Sample session outputs:

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

Posted by: SXI ADMIN

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.


How to KVM, QEMU start or stop virtual machine from command line (CLI)

KVM or Kernel Based Virtual Machine is a popular virtualization technology. It allows you to run virtual guest machines over a host machine. To start...

How to Docker backup Saving and restoring your volumes

Running a Docker volume backup First, we spin up a temporary container, and we mount the backup folder and the target Docker volume to this container....

How to Start and Enable Firewalld on CentOS 7

In this article, we discuss how to start and enable firewalld. It is highly recommended that you have a firewall protecting your server.Pre-Flight CheckThese...