truenegative
Verified User
- Joined
- Feb 16, 2006
- Messages
- 152
I'm having some issues with zone transfer from a master dns server to the slaver server...
I wanted to create this thread because more people might be looking at it to help than in the 3rd party master2slave thread, since its not an issue directly related to that.
My secondary server is just a regular vanilla CentOS server running bind-chroot. I believe I have everything set up correctly. I believe I have master2slave set up properly on there, but for now I commented that out in the /etc/named.conf, and created a static slave entry to test it.
Here is the relevant parts of my /etc/named.conf on my slave server:
My issue is that I'm getting these errors in /var/log/messages with the above setup:
However, if I change the file part of the slave declaration to be just /var/named/domain.com.db, it works fine. This is because on the master server (the DA server), those db files are in /var/named. Why is it that I can't have it be in one place on the master server, and have it stored in a different place on the slave server? I would imagine that I'm missing a simple option or something.
Thanks in advance!
I wanted to create this thread because more people might be looking at it to help than in the 3rd party master2slave thread, since its not an issue directly related to that.
My secondary server is just a regular vanilla CentOS server running bind-chroot. I believe I have everything set up correctly. I believe I have master2slave set up properly on there, but for now I commented that out in the /etc/named.conf, and created a static slave entry to test it.
Here is the relevant parts of my /etc/named.conf on my slave server:
Code:
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
recursion no;
allow-notify { XXX.XXX.XXX.XXX; };
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
zone "domain.com" {
type slave;
masters { XXX.XXX.XXX.XXX; };
file "/var/named/chroot/var/named/slaves/namedftp/XXX.XXX.XXX.XXX/domain.com.db";
};
My issue is that I'm getting these errors in /var/log/messages with the above setup:
Code:
Feb 11 21:18:33 phobos named[14238]: dumping master file: /var/named/chroot/var/named/slaves/namedftp/XXX.XXX.XXX.XXX/tmp-XXXXDDehgu: open: file not found
Feb 11 21:18:33 phobos named[14238]: transfer of 'domain.com/IN' from XXX.XXX.XXX.XXX#53: failed while receiving responses: file not found
Feb 11 21:18:33 phobos named[14238]: transfer of 'domain.com/IN' from XXX.XXX.XXX.XXX#53: end of transfer
However, if I change the file part of the slave declaration to be just /var/named/domain.com.db, it works fine. This is because on the master server (the DA server), those db files are in /var/named. Why is it that I can't have it be in one place on the master server, and have it stored in a different place on the slave server? I would imagine that I'm missing a simple option or something.
Thanks in advance!