How to add nameservers from shell.

Most of the time on cPanel dedicated server we add nameservers from WHM but some time we are not able to access WHM. In that case we can add nameservers from shell by using root login details.

Login in to server as root user and run following commands.

root@server[~]#/scripts/adddns –domain –ip=

root@server[~]#/scripts/adddns –domain –ip=

You can use your domain name instead of in above command with the respective ips which you want to use for your nameservers.

root@server[~]#service named restart
root@server[~]#/etc/init.d/named restart


Both comments and pings are currently closed.

Comments are closed.