DNS - Failed to load master file

69 views
Skip to first unread message

Dale-Kurt Murray

unread,
Nov 30, 2011, 9:00:56 AM11/30/11
to scalr-...@googlegroups.com
I have Scalr updating the client zones in a DNS chroot environment, however the client zones file is not loaded.

I get the following error message in my log file

30-Nov-2011 13:53:02.967 zone qcozz.com/IN: loading from master file client_zones/qcozz.com.db failed: file not found
30-Nov-2011 13:53:02.967 zone qcozz.com/IN: not loaded due to errors.

I took the log at face value thinking that there was no path for the client_zones/qcozz.com.db file but the path has been symlinked to take care of any missing paths required for Scalr.

My symlinks are setup like this

/etc/bind -> /var/lib/named/etc/bind
/var/named/etc/namedb/client_zones -> /var/lib/named/etc/bind/client_zones

Has anyone setup DNS chroot with scalr?

Nick Toursky

unread,
Nov 30, 2011, 9:10:55 AM11/30/11
to scalr-...@googlegroups.com
Hi Dale-Kurt,

Check Scalr system logs to see if there were errors writing the file.

Regards,
Nick

--
You received this message because you are subscribed to the Google Groups "scalr-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msg/scalr-discuss/-/qaoYlIsjfoUJ.
To post to this group, send email to scalr-...@googlegroups.com.
To unsubscribe from this group, send email to scalr-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scalr-discuss?hl=en.

Dale-Kurt Murray

unread,
Nov 30, 2011, 9:29:44 AM11/30/11
to scalr-...@googlegroups.com
Hi Nick,

Scalr is writing the file great, I found out that the reason it is not loading the file is that I have chrooted DNS and it requires the full path of the client_zones file.

//qcozz.com-BEGIN
zone "qcozz.com" {
   type master;
   file "client_zones/qcozz.com.db"; # How it is written currently
   allow-transfer { none; };

};
//qcozz.com-END

//qcozz.com-BEGIN
zone "qcozz.com" {
   type master;
   file "/etc/bind/client_zones/qcozz.com.db"; # How I want the zone files written
   allow-transfer { none; };

};
//qcozz.com-END

Nick Toursky

unread,
Nov 30, 2011, 9:37:39 AM11/30/11
to scalr-...@googlegroups.com
I believe you can get bind to accept this type of relative paths by configuring the correct bind home directory.
Anyway, if you need the format to be changed, you can change it in Scalr source code.

--
You received this message because you are subscribed to the Google Groups "scalr-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msg/scalr-discuss/-/OS25JIFII_AJ.

Dale-Kurt Murray

unread,
Nov 30, 2011, 10:15:56 AM11/30/11
to scalr-...@googlegroups.com
How may I configure DNS to accept this relative path and where can I make this change in the source to change the format?

Dale-Kurt Murray

unread,
Dec 1, 2011, 10:25:39 AM12/1/11
to scalr-...@googlegroups.com
Nick,

I had updated the /etc/default/bind9 file with OPTIONS="-u bind -t /var/lib/named" for chroot of the DNS.

Could you advise me on where in the code I can modify for it to add the full path /etc/bind/client_zones/qcozz.com.db
Reply all
Reply to author
Forward
0 new messages