• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved DNS Problem (BIND) with CentOs 6.x

AllanEspinoza

New Pleskian
Hi,

When i do a fresh install of Plesk on CentOs 6.x the service (Bind) never start. I have formated the server like 3 times and when the Installer Finish all the install without errors, that service never start.

Thanks,
Allan
 
Hi,

Now i have the same problem with Ubuntu!

Error: Unable to make action: Unable to manage service by dnsmng: dnsmng: Service /etc/init.d/bind9 failed to start
('--start', 'dns')

Thanks,
Allan
 
Hi, same problem :

[root@ks2g ~]# service named --full-restart
Arrêt de named*: [ OK ]
Démarrage de named*:
Error in named configuration:
zone 0.0.127.IN-ADDR.ARPA/IN: loading from master file localhost.rev failed: file not found
zone 0.0.127.IN-ADDR.ARPA/IN: not loaded due to errors.
_default/0.0.127.IN-ADDR.ARPA/IN: file not found
zone 97.187.37.in-addr.arpa/IN: loading from master file 97.187.37.in-addr.arpa failed: file not found
zone 97.187.37.in-addr.arpa/IN: not loaded due to errors.
_default/97.187.37.in-addr.arpa/IN: file not found
[ÉCHOUÉ]
 
Hi,

Are minimal, right now im installing again the CentOs version. I have the same problem of "JanikoG". Same errors. But let me first reinstall the server again with Plesk and then i will say if i have the same problem or not.

Thanks,
Allan
 
When I start named manually with the right parameters, it seems to work :
/usr/sbin/named -u named -c /etc/named.conf -u named -n 2 -t /var/named/chroot
I'm looking further but seems to be a config/parameter matter.
 
Last edited:
Check that you have the same:

# ll /etc/named.conf
lrwxrwxrwx 1 root root 32 Nov 1 04:44 /etc/named.conf -> /var/named/chroot/etc/named.conf

# cat /etc/named.conf |grep directory
directory "/var";
 
Here are the results :
[root@ks2g log]# ll /etc/named.conf
lrwxrwxrwx. 1 root root 32 31 oct. 23:54 /etc/named.conf -> /var/named/chroot/etc/named.conf
[root@ks2g log]# cat /etc/named.conf | grep directory
directory "/var";
// The directory containing the secondary zones must be write accessible
 
Hi,

Fresh install on CentOs and Same Problem.

Here are my results:

[root@x5 ~]# ll /etc/named.conf
lrwxrwxrwx. 1 root root 32 Nov 1 04:46 /etc/named.conf -> /var/named/chroot/etc/named.conf
[root@x5 ~]# cat /etc/named.conf |grep directory
directory "/var";
// The directory containing the secondary zones must be write accessible

When I try activate the BIND service via Plesk Panel i receive this error:

Error: Unable to make action: Unable to manage service by dnsmng: dnsmng: Service /etc/init.d/named failed to start
('--start', 'dns')

If I try start BIND via command:

[root@x5 ~]# service named start
Starting named:
Error in named configuration:
zone 0.0.127.IN-ADDR.ARPA/IN: loading from master file localhost.rev failed: file not found
zone 0.0.127.IN-ADDR.ARPA/IN: not loaded due to errors.
_default/0.0.127.IN-ADDR.ARPA/IN: file not found
zone 208.4.142.in-addr.arpa/IN: loading from master file 208.4.142.in-addr.arpa
failed: file not found
zone 208.4.142.in-addr.arpa/IN: not loaded due to errors.
_default/208.4.142.in-addr.arpa/IN: file not found
[FAILED]

I like to say, this is fresh install of CentOs 6.4 with Plesk 11.5.

Thanks,
Allan
 
Hi,

I have finish my reinstall, and the problem is the same.

I receive this error when i try start BIND via Plesk Panel:
Error: Unable to make action: Unable to manage service by dnsmng: dnsmng: Service /etc/init.d/named failed to start
('--start', 'dns')

Here are my result:

[root@x5 ~]# ll /etc/named.conf
lrwxrwxrwx. 1 root root 32 Nov 1 04:46 /etc/named.conf -> /var/named/chroot/etc
/named.conf
[root@x5 ~]# cat /etc/named.conf |grep directory
directory "/var";
// The directory containing the secondary zones must be write accessible

If i try start BIND via command Line:
[root@x5 ~]# service named start
Starting named:
Error in named configuration:
zone 0.0.127.IN-ADDR.ARPA/IN: loading from master file localhost.rev failed: fil
e not found
zone 0.0.127.IN-ADDR.ARPA/IN: not loaded due to errors.
_default/0.0.127.IN-ADDR.ARPA/IN: file not found
zone 208.4.142.in-addr.arpa/IN: loading from master file 208.4.142.in-addr.arpa
failed: file not found
zone 208.4.142.in-addr.arpa/IN: not loaded due to errors.
_default/208.4.142.in-addr.arpa/IN: file not found
[FAILED]

I like to say this is a fresh install CentOs 6.4 with Plesk 11.5.30

Thanks,
Allan
 
Plesk-bind removes bind-chroot who is needed to start named service. So you can start named as a service by removing plesk-bind package and installing bind-chroot, but it's only a workaround.
 
The is very interesting.
bind-chroot has been a problem since 8.6 and needed to be removed because although it was OK to have it installed when Plesk was installed, when that package was ever updated it screwed up Plesk's configuration of named.

If I remember correctly, in one of the more recent updates Plesk has started to automatically remove it on install if it finds it on a system. This is a good thing as it prevents problems later on.

So I'm guessing something has changed, but what/when I don't know (worked fine for me in 6.3...so maybe it is 6.4 that's the problem?)

With bind-chroot removed, check to see what it says in /etc/sysconfig/named

It should be
ROOTDIR="/var/named/chroot"
OPTIONS="-c /etc/named.conf -u named -n 2"

Next, make sure that there's a symbolic link between /etc/named.conf and /var/named/chroot/etc/named.conf

e.g.

# ls -al /etc/named.conf
lrwxrwxrwx 1 root root 32 Jul 22 15:55 /etc/named.conf -> /var/named/chroot/etc/named.conf

Lastly, check the contents of /var/named/chroot/etc/named.conf

You should see data relating to sites on your server.

DO NOT make any changes to your system based on my post alone. Let's try and figure out what's happening before we go any further.
 
Sorry for entering in a old thread. This kind of problem is still with Plesk. I've made a documentation regarding this issue with Plesk Onyx Linux. I tried to explain what creating the issue and what bind-chroot is. Please go through the following link, it may help.

https://www.serverlog.net/plesk-onyx-localhost-rev-failed-solved/

I'll be glad if I can help you.

Regards
Abhik Bose

I had the same problem. I have followed these instructions and now it is working. Thank you very much!
 
Back
Top