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

rndc status number of zones

1,075 views
Skip to first unread message

Emil Natan

unread,
Mar 1, 2012, 6:20:35 AM3/1/12
to bind-...@lists.isc.org
Hi list,

I have a test environment with 3 VMs running different versions of BIND - 9.7.3-P3, 9.8.1-P1 and 9.9.0rc1. On all 3 machines "rndc status" reports unrealistic "number of zones:". For example, when the zones configured at named.conf are 3, the number reported is "number of zones: 18" and when the zones are 7, then I get "number of zones: 41". Here is mine "named.zones" configuration file, part of named.conf (included into it). There are no other "zone" statements in named.conf:

========== named.zones ===========
zone "." {
        type hint;
        file "/etc/root.hints";
};

zone "net.ttt" {
        type master;
        file "net.ttt.zone";
};

zone "vvv.ttt" {
        type master;
        file "vvv.ttt.zone";
        notify explicit;
        also-notify { 10.0.130.118; };
        allow-transfer { 10.0.130.118; };
};

=====================

If I comment the "zone . { ... };" part and then reconfig/reload/restart, the number reported by "rndc status" remains unchanged. If I comment any other zone statement, the number reported decrease accordingly, when all commented, the number reported is 16.
Do any of you experience the same issue? Any ideas what I'm missing or what's wrong?

Thanks,

ena

Matthew Seaman

unread,
Mar 1, 2012, 6:26:49 AM3/1/12
to bind-...@lists.isc.org
On 01/03/2012 11:20, Emil Natan wrote:
> Do any of you experience the same issue? Any ideas what I'm missing or
> what's wrong?

Automatic empty zones?

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: mat...@infracaninophile.co.uk Kent, CT11 9PW

signature.asc

Emil Natan

unread,
Mar 1, 2012, 7:10:27 AM3/1/12
to bind-...@lists.isc.org
On Thu, Mar 1, 2012 at 1:26 PM, Matthew Seaman <m.se...@infracaninophile.co.uk> wrote:
On 01/03/2012 11:20, Emil Natan wrote:
> Do any of you experience the same issue? Any ideas what I'm missing or
> what's wrong?

Automatic empty zones?


Thanks for the input. It seems you are right, adding "recursion no;" to named.conf which disables the automatic empty zones, reduces the number of zones to what I expect +1, which means named.conf with no "zone" statements, "rndc status" returns "number of zones: 1", when I have 7 zone statements, the number returned is 8. So I'm still missing something. Any ideas?

ena
 
       Cheers,

       Matthew

--
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: mat...@infracaninophile.co.uk               Kent, CT11 9PW


_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
bind-...@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Flex Banana

unread,
Mar 1, 2012, 7:14:41 AM3/1/12
to Emil Natan, bind-...@lists.isc.org
I think you want to use

options {
empty-zones-enable no;
};

in your named.conf configuration file to disable all empty zones.

Look at the DNS and BIND reference from Cricket Liu

ciao!
Banana

Matthew Seaman

unread,
Mar 1, 2012, 7:27:30 AM3/1/12
to bind-...@lists.isc.org
On 01/03/2012 12:10, Emil Natan wrote:
> On Thu, Mar 1, 2012 at 1:26 PM, Matthew Seaman <
> m.se...@infracaninophile.co.uk> wrote:
>
>> > On 01/03/2012 11:20, Emil Natan wrote:
>>> > > Do any of you experience the same issue? Any ideas what I'm missing or
>>> > > what's wrong?
>> >
>> > Automatic empty zones?
>> >
>> >
> Thanks for the input. It seems you are right, adding "recursion no;" to
> named.conf which disables the automatic empty zones, reduces the number of
> zones to what I expect +1, which means named.conf with no "zone"
> statements, "rndc status" returns "number of zones: 1", when I have 7 zone
> statements, the number returned is 8. So I'm still missing something. Any
> ideas?

Try:

zone-statistics yes;

and then dumping statistics, or looking at the XML statistics output.
In fact, there are 4 extra zones in the _bind view I'd expect you to see
as well as your configured zones:

[version.bind (view: _bind)]
[hostname.bind (view: _bind)]
[authors.bind (view: _bind)]
[id.server (view: _bind)]
signature.asc

Emil Natan

unread,
Mar 1, 2012, 7:41:12 AM3/1/12
to bind-...@lists.isc.org
It's really more elegant way to disable the empty zones, Thanks.

On Thu, Mar 1, 2012 at 2:14 PM, Flex Banana <flex....@bluewin.ch> wrote:
I think you want to use

options {
empty-zones-enable no;
};

in your named.conf configuration file to disable all empty zones.

Look at the DNS and BIND reference from Cricket Liu

ciao!
Banana
On Mar 1, 2012, at 1:10 PM, Emil Natan wrote:

On Thu, Mar 1, 2012 at 1:26 PM, Matthew Seaman <m.se...@infracaninophile.co.uk> wrote:
On 01/03/2012 11:20, Emil Natan wrote:
> Do any of you experience the same issue? Any ideas what I'm missing or
> what's wrong?

Automatic empty zones?


Thanks for the input. It seems you are right, adding "recursion no;" to named.conf which disables the automatic empty zones, reduces the number of zones to what I expect +1, which means named.conf with no "zone" statements, "rndc status" returns "number of zones: 1", when I have 7 zone statements, the number returned is 8. So I'm still missing something. Any ideas?

ena
 
       Cheers,

       Matthew

--
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: mat...@infracaninophile.co.uk               Kent, CT11 9PW


_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
bind-...@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Mark Andrews

unread,
Mar 1, 2012, 7:41:20 AM3/1/12
to Emil Natan, bind-...@isc.org

Built in root hints zones with class IN.

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

Emil Natan

unread,
Mar 1, 2012, 7:48:21 AM3/1/12
to bind-...@lists.isc.org


On Thu, Mar 1, 2012 at 2:27 PM, Matthew Seaman <m.se...@infracaninophile.co.uk> wrote:
On 01/03/2012 12:10, Emil Natan wrote:
> On Thu, Mar 1, 2012 at 1:26 PM, Matthew Seaman <
> m.se...@infracaninophile.co.uk> wrote:
>
>> > On 01/03/2012 11:20, Emil Natan wrote:
>>> > > Do any of you experience the same issue? Any ideas what I'm missing or
>>> > > what's wrong?
>> >
>> > Automatic empty zones?
>> >
>> >
> Thanks for the input. It seems you are right, adding "recursion no;" to
> named.conf which disables the automatic empty zones, reduces the number of
> zones to what I expect +1, which means named.conf with no "zone"
> statements, "rndc status" returns "number of zones: 1", when I have 7 zone
> statements, the number returned is 8. So I'm still missing something. Any
> ideas?

Try:

  zone-statistics yes;

and then dumping statistics, or looking at the XML statistics output.
In fact, there are 4 extra zones in the _bind view I'd expect you to see
as well as your configured zones:

[version.bind (view: _bind)]
[hostname.bind (view: _bind)]
[authors.bind (view: _bind)]
[id.server (view: _bind)]

I always add  "hostname none;" and  "version none;", so I believe that's the reason I do not see what you have expected. Here is the statistics file:

+++ Statistics Dump +++ (1330605355)
++ Incoming Requests ++
++ Incoming Queries ++
++ Outgoing Queries ++
[View: default]
                  37 A
                  37 NS
                 172 AAAA
[View: _bind]
++ Name Server Statistics ++
++ Zone Maintenance Statistics ++
                   1 IPv4 notifies sent
++ Resolver Statistics ++
[Common]
[View: default]
                 182 IPv4 queries sent
                  64 IPv6 queries sent
                 238 query retries
                 174 query timeouts
                   1 IPv4 NS address fetches
                   6 IPv6 NS address fetches
[View: _bind]
++ Cache DB RRsets ++
[View: default]
[View: _bind (Cache: _bind)]
++ Socket I/O Statistics ++
                 185 UDP/IPv4 sockets opened
                  65 UDP/IPv6 sockets opened
                   3 TCP/IPv4 sockets opened
                   1 TCP/IPv6 sockets opened
                 183 UDP/IPv4 sockets closed
                  64 UDP/IPv6 sockets closed
                  15 TCP/IPv4 sockets closed
                  64 UDP/IPv6 socket connect failures
                 182 UDP/IPv4 connections established
                  16 TCP/IPv4 connections accepted
                  64 UDP/IPv6 send errors
++ Per Zone Query Statistics ++
--- Statistics Dump --- (1330605355)

ena

Emil Natan

unread,
Mar 1, 2012, 7:53:04 AM3/1/12
to bind-...@isc.org
That should be it. And that's probably why adding and removing the custom root.hints file does not change the count, when enabled it's the one counted and when disabled, the build in one is counted. Thanks.

ena
0 new messages