# named mastefile-format text option

**URL:** <https://forums.suse.com/t/named-mastefile-format-text-option/27058>\
**Category:** SLES Configure-Administer\
**Created:** [May 20, 2015, 5:51pm UTC](https://forums.suse.com/t/named-mastefile-format-text-option/27058 "2015-05-20T17:51:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lpphiggp](https://avatars.discourse-cdn.com/v4/letter/l/54ee81/32.png) [@lpphiggp](https://forums.suse.com/u/lpphiggp)\
**Post date:** [May 20, 2015, 5:51pm UTC](https://forums.suse.com/t/named-mastefile-format-text-option/27058/1 "2015-05-20T17:51:21Z")

</div>

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:

[INDENT] zone “[mydomain.com](http://mydomain.com)” in {  
type slave;  
notify no;  
file “data/mydomain.com”;  
[COLOR="#800000"] masterfile-format text;[/COLOR]  
masters { 10.100.200.10; };  
};[/INDENT]

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.

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [May 20, 2015, 6:20pm UTC](https://forums.suse.com/t/named-mastefile-format-text-option/27058/2 "2015-05-20T18:20:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lpphiggp](https://avatars.discourse-cdn.com/v4/letter/l/54ee81/32.png) [@lpphiggp](https://forums.suse.com/u/lpphiggp)\
**Post date:** [May 20, 2015, 7:10pm UTC](https://forums.suse.com/t/named-mastefile-format-text-option/27058/3 "2015-05-20T19:10:53Z")

</div>

Jens,

Just as you typed that, I ran across this:  
[http://www.zytrax.com/books/dns/ch7/zone.html](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. ☹
