Rebuild named

On a Linux server with Cpanel, no sites are working. Tryed 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
#

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Restore cpanel server from corrupted drive

Restore cpanel server from corrupted drive. If your server drive got corrupted and need to...