PDA

View Full Version : named mastefile-format text option



lpphiggp
20-May-2015, 15:51
I'm just trying to dot my i's and cross my t's here:

I see no benefit from bind 9s binary zone file format, we have a relatively small network anyway.
I want to change the default format to text on our secondary.

From what I've read, I need to edit the named.conf file like so to add the masterfile-format text; line to each zone entry:


zone "mydomain.com" in {
type slave;
notify no;
file "data/mydomain.com";
masterfile-format text;
masters { 10.100.200.10; };
};


If I understand this correctly, it appears I have to edit the secondary's named.conf file (not the masters!) but add this line for every single zone definition.

Because we have a lot of reverse zone files and several different defined "Views", this is going to mean editing over a hundred lines.
I was thinking I could use sed and just work out a way to enter that "masterfile-format text;" line right underneath the "type slave;" line (this would result in editing consistency for all zones)

Sound right?

On some other website it sounded like someone suggested I could just enter it once in the top "Options" part of the conf file, but I'm not sure about that.
It would be a lot easier if I could.

jmozdzen
20-May-2015, 16:20
Hi lpphiggp,

RTFM ;)

> On some other website it sounded like someone suggested I could just enter it once in the top "Options" part of the conf file, but I'm not sure about that.

according to ftp://ftp.isc.org/isc/bind/cur/9.9/doc/arm/Bv9ARM.ch06.html#id2577438, there's the "masterfile-fomat" option available in the "options {}" statement.

Regards,
Jens

lpphiggp
20-May-2015, 17:10
Jens,

Just as you typed that, I ran across this:
http://www.zytrax.com/books/dns/ch7/zone.html

But wow, it's like spelunking to find that in the RFC.

Anyway, joy! That'll save a butt-load of work. I'm dying to try it out right now, but they'll probably want me to wait for change control. :(