Our CPanel on CentOS is set to run in a chroot environment on /var/named/chroot/.
We recently edited a number of zones by hand instead of using the web interface to Edit DNS Zone due to the speed of finishing the task.
However, when we pulled up a zone in DNS Edit Zone, it showed NONE of the changes.
Upon looking further, it appears that CPanel, for some unknown reason, was doing the following:
1) All zones were in /var/named/chroot/var/named
2) Some zones had a symlink in /var/named
3) Some zones had a hard COPY in /var/named
So, in an effort to figure out what the problem was, I moved all of the .db files out of /var/named into a temporary directory. Then I restarted named using /etc/init.d/named restart.
No change. CPanel/WHM was still pulling the old zone information from somewhere else.
If I look at the file "/var/named/chroot/var/named/somedomain.com" in an editor, it is the new copy of the file as I have edited it.
If I look at the zone in WHM Edit DNS Zone, it shows me an old copy from somewhere else. It can't be from /var/named, as that directory is now emtpy.
Also interesting is the fact that if I create the symbolic link /var/named/somedomain.com -> /var/named/chroot/var/named/somedomain.com, then the proper zone file shows up in the WHM Edit DNS Zone editor.
Can someone explain the following:
1) Why is CPanel not solely using /var/named/chroot as it should?
2) Where is it finding/locating an older copy of the DNS zone file
3) Is there a way to force an update to see all of the changes we made to the files in /var/named/chroot/var/named without losing those changes?
4) If symlinks in /var/named are required, is there a way to force a recreation of all of those links since many of the files were not symlinked there?
5) Must /etc/named.conf and /var/named/chroot/etc/named.conf point to the directory /var/named/chroot/var/named, or should it be recognizing this due to the "-t /var/named/chroot" command line flag?
Any other thoughts on questions I should have asked but didn't would also be appreciated.
Thank you.
We recently edited a number of zones by hand instead of using the web interface to Edit DNS Zone due to the speed of finishing the task.
However, when we pulled up a zone in DNS Edit Zone, it showed NONE of the changes.
Upon looking further, it appears that CPanel, for some unknown reason, was doing the following:
1) All zones were in /var/named/chroot/var/named
2) Some zones had a symlink in /var/named
3) Some zones had a hard COPY in /var/named
So, in an effort to figure out what the problem was, I moved all of the .db files out of /var/named into a temporary directory. Then I restarted named using /etc/init.d/named restart.
No change. CPanel/WHM was still pulling the old zone information from somewhere else.
If I look at the file "/var/named/chroot/var/named/somedomain.com" in an editor, it is the new copy of the file as I have edited it.
If I look at the zone in WHM Edit DNS Zone, it shows me an old copy from somewhere else. It can't be from /var/named, as that directory is now emtpy.
Also interesting is the fact that if I create the symbolic link /var/named/somedomain.com -> /var/named/chroot/var/named/somedomain.com, then the proper zone file shows up in the WHM Edit DNS Zone editor.
Can someone explain the following:
1) Why is CPanel not solely using /var/named/chroot as it should?
2) Where is it finding/locating an older copy of the DNS zone file
3) Is there a way to force an update to see all of the changes we made to the files in /var/named/chroot/var/named without losing those changes?
4) If symlinks in /var/named are required, is there a way to force a recreation of all of those links since many of the files were not symlinked there?
5) Must /etc/named.conf and /var/named/chroot/etc/named.conf point to the directory /var/named/chroot/var/named, or should it be recognizing this due to the "-t /var/named/chroot" command line flag?
Any other thoughts on questions I should have asked but didn't would also be appreciated.
Thank you.