I have a CentOS 5.3 server running BIND 9.3.6 and webmin 1.520. What I am trying to accomplish is a frontend where I can add/modify DNS records rather than manually editing the files. I would also like for it to transfer from the master to the slave.
I have installed Webmin and in the BIND section I have it displaying all the zones, however every zone has 0 records. For example it shows domain.com (In view external-in) and when I go in there I have 0 records. When I manually edit the file it shows the records.
I believe the location of important files are as follows
chroot = /var/named/chroot
zone files = /var/named/chroot/var/named/db_files_external
named.conf = /var/named/chroot/etc
There are no useful errors in /var/webmin/miniserv.error
When I create a new master zone in webmin it is able to see the records that it creates. The file it creates is in /var/named/chroot/var/named. The file name is domain.com.internal-in.hosts and does have the records in it.
All of my existing records are in /var/named/chroot/var/named/db_files_external. They are named like db.domain.com.
I tried changing the module configuration to look for zone files in /var/named/db_files_external because it was set to /var/named/ which is where it created my test zone but this did not help the existing zones.
It sounds like the chroot directory might not be set correctly. Make sure that on the Module Config page the chroot path is set to something like /var/named/chroot , and all the other paths are set *relative* to this. For example, the "Path to named.conf" would be like /etc/named.conf
the chroot directory is already set to /var/named/chroot. I changed it so named.conf was relative but did not see any change, I don't know if I need to reset something.
In webmin:
The directory for my master zone files is /var/named
Full path to named.conf: /etc/named.conf
I have tried multiple things to get it to detect the right settings, I don't understand why it sees the domains but doesn't see the records in each zone.
In your named.conf file, what do the "file" directives that specify the paths to zone files look like?
file "db_files_external/db.domain.com";
Interesting, it looks like Webmin isn't converting that to an absolute path correctly. In your /etc/named.conf file, do you have a "directory" line, and if so what does it contain?
yzD7uB <a href="http://xxymjpbarsoh.com/">xxymjpbarsoh</a>, [url=http://mesjvnpauuts.com/]mesjvnpauuts[/url], [link=http://kemebjwqkelh.com/]kemebjwqkelh[/link], http://azfbcerynwhj.com/