Recently, I replaced two old RHEL5 DNS BIND (named
) servers to RHEL7. Essentially, I took the easy route and used WebMin config backups to setup the new servers. However, i did come across some easily resolvable issues.
–
Problem: I want to replace named
with chroot-named
Solution:
yum -y install bind-chroot
systemctl stop named
systemctl disable named
/usr/libexec/setup-named-chroot.sh /var/named/chroot on
mkdir /var/named/chroot/var/named/data
chown named:named /var/named/chroot/var/named/data
systemctl enable named-chroot
systemctl start named-chroot
–
Problem: Job for named-chroot.service failed because the control process exited with error code.
Solution: you need to mkdir/chown data
directory as described above.
You can get additional service status info with journalctl -xe -u named-chroot
–
Problem: zones aren’t being transferred or files are access-denied (as seen with with the above journalctl
command )
Solution:
scp -p /var/named/chroot/var/named/*.{rev,hosts} root@DNS2:/var/named/chroot/var/named/slaves/
chown -R root:named /var/named/chroot/var/named/slaves/
chmod 770 /var/named/chroot/var/named/slaves/
chmod 660 /var/named/chroot/var/named/slaves/*
~~~
Written with StackEdit.