Showing posts with label named issue. Show all posts
Showing posts with label named issue. Show all posts

How to add nameservers from shell

3 comments

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 ns1.your_domain.com –ip=174.222.222.1


root@server[~]#/scripts/adddns –domain ns2.your_domain.com –ip=174.222.222.2


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


root@server[~]#service named restart

or

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

named issue

0 comments

Issue:- named service is running in the server. But, domains are not resolving to any query.


Cause: If you find the following error in the log file, then it seems to be a bug in CentOS version 5 and cPanel version 11.


view localhost_resolver: received notify for zone ‘domain.com’: not authoritative


Fix:


1. Open the named configuration file /etc/named.conf


2. Search the following entries in external views



match-clients         { localhost; };
match-destinations    { localhost; };

3. Change them as follows:



match-clients { any; };
match-destinations { any; };

4. Restart named service.