Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

zone files in bind-9.9

348 views
Skip to first unread message

Feng He

unread,
Jan 6, 2013, 8:23:51 AM1/6/13
to bind-...@lists.isc.org
Hi

I upgraded my BIND from 9.7 to 9.9.
For BIND 9.7 all zone files under /var/cache/bind are clear textes.
But under BIND 9.9 it seems the zone files are binary format.
So how can we check the content of zone files now?

Thanks.

Carsten Strotmann

unread,
Jan 6, 2013, 8:53:42 AM1/6/13
to Feng He, bind-...@lists.isc.org

Hello Feng,
you can use "named-compilezone" to convert from RAW-Format to Text-Format.

Or you can use "dig" with axfr to get a zone-transfer from the server
(dig @server axfr zone.tld).

You can change the format for writing zone files in the named.conf if
you prefer the text format files.

-- Carsten

Feng He

unread,
Jan 6, 2013, 8:58:16 AM1/6/13
to Carsten Strotmann, bind-...@lists.isc.org
锟斤拷 2013-1-6 21:53, Carsten Strotmann 写锟斤拷:
> you can use "named-compilezone" to convert from RAW-Format to Text-Format.
>
> Or you can use "dig" with axfr to get a zone-transfer from the server
> (dig @server axfr zone.tld).
>
> You can change the format for writing zone files in the named.conf if
> you prefer the text format files.

Thanks for the kind info Carsten.

Matus UHLAR - fantomas

unread,
Jan 6, 2013, 12:27:02 PM1/6/13
to bind-...@lists.isc.org
On 06.01.13 21:23, Feng He wrote:
>I upgraded my BIND from 9.7 to 9.9.
>For BIND 9.7 all zone files under /var/cache/bind are clear textes.
>But under BIND 9.9 it seems the zone files are binary format.
>So how can we check the content of zone files now?

"named-compilezone -j -F text <zonefile>" should do
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Support bacteria - they're the only culture some people have.

Liu Mingxing

unread,
Jan 6, 2013, 7:17:43 PM1/6/13
to Feng He, bind-users
 
What files are there in the directory /var/cache/bind? yours or BIND's? 

Liu Mingxing
 
From: Feng He
Date: 2013-01-06 21:23
Subject: zone files in bind-9.9
Hi
 
I upgraded my BIND from 9.7 to 9.9.
For BIND 9.7 all zone files under /var/cache/bind are clear textes.
But under BIND 9.9 it seems the zone files are binary format.
So how can we check the content of zone files now?
 
Thanks.
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list
 
bind-users mailing list

Feng He

unread,
Jan 6, 2013, 8:38:44 PM1/6/13
to Carsten Strotmann, bind-...@lists.isc.org
Another question, since the zone files are raw format now, how can we
edit the zones? I use nsupdate only so it's not a problem, but for
editting by hand, how to?

Thanks.

Mark Andrews

unread,
Jan 6, 2013, 9:44:47 PM1/6/13
to Feng He, bind-...@isc.org

In message <50EA2724...@nsbeta.info>, Feng He writes:
> Another question, since the zone files are raw format now, how can we
> edit the zones? I use nsupdate only so it's not a problem, but for
> editting by hand, how to?
>
> Thanks.

Master zones still use text format by default.

Slave zones use raw format by default. You are not expected to
edit slave zones.

Mark
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: ma...@isc.org

Feng He

unread,
Jan 6, 2013, 10:41:22 PM1/6/13
to Mark Andrews, bind-...@isc.org
于 2013-1-7 10:44, Mark Andrews 写道:
> Master zones still use text format by default.
>
> Slave zones use raw format by default. You are not expected to
> edit slave zones.

OK I see. that's right.
0 new messages