Plesk named issue
Recently Plesk has hit a weird bug related to named.
Named remains down after a reboot & won’t start after attempting to start it in any condition throwing all sort of errors.
[root@testing ~]# /etc/init.d/named status
rndc: connect failed: 127.0.0.1#953: connection refused
[root@testing ~]# /etc/init.d/named restart
Stopping named: [FAILED]
Starting named:
Error in named configuration:
zone 0.0.127.IN-ADDR.ARPA/IN: loaded serial 20010622
zone domain.com/IN: loaded serial 1191864879
zone domain2.com/IN: loaded serial 1191865050
zone domain3.com/IN: loaded serial 1191867376
zone domain4.com/IN: loaded serial 1191868463
127.209.72.in-addr.arpa:12: unknown RR type ‘62.20′
zone 127.209.62.in-addr.arpa/IN: loading master file 127.209.62.in-addr.arpa: unknown class/type
_default/127.209.62.in-addr.arpa/IN: unknown class/type
[FAILED]
Here’s a fix for this bug, it may be a temporary solution but will work until it’s patched:
Execute these commands one by one.
1) cd /var/named/run-root/etc
2) mv named.conf named.conf.bak
3) cp named.conf.default named.conf
4) for x in `ls`; do /usr/local/psa/admin/sbin/dnsmng update $x; done;/etc/init.d/named restart
Here ‘x’ is going to be the file name returned by the ‘ls’ command for each file in the directory.
The last line of script is just a quick way to perform the dnsmng utility on all files in the directory and then restart named.