HostOnNet Blog

Cpanel Server, Rebuilding named.conf

Looking for Linux Server Admin or WordPress Expert? We can help.

On a Linux server with Cpanel, no sites are working. Tyred to SSH in, but it failed. Later found i am able to get in if i SSH to server IP address. In the server all services are working. I checked few local domains with nslookup, but it failed. So checked if named is working

# service named status
number of zones: 11
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
server is up and running

Only 11 zones are active. I checked zone files in /var/named

# cd /var/named
# ls -l|wc -l
105

There was 105 files. So i checked /etc/named.conf, it only contain entry for few zones files.

So i rebuild /etc/named.conf with

# /scripts/rebuildnamedconf

Now restarted named. Now all site start working normal.

# service named restart
Stopping named: [ OK ]
Starting named: [ OK ]

# service named status
number of zones: 101
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
server is up and running
#

Posted in Cpanel Server. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.