[Pdns-users] reverse dns with cidr notation and bind slave
Willem de Groot
willem at byte.nl
Tue Feb 3 12:58:12 UTC 2004
On Tue, 3 Feb 2004, bert hubert wrote:
> On Tue, Feb 03, 2004 at 01:28:53PM +0100, Willem de Groot wrote:
> >
> > 46382 1920 3.229.119.217.in-addr.arpa PTR wofri.byte.nl 3600 0 NULL
> > 46381 1920 4.229.119.217.in-addr.arpa PTR uvwrt.byte.nl 3600 0 NULL
>
> They are not in the zone, they should be called:
>
> > 46382 1920 3.0/25.229.119.217.in-addr.arpa PTR wofri.byte.nl 3600 0 NULL
> > 46381 1920 4.0/25.229.119.217.in-addr.arpa PTR uvwrt.byte.nl 3600 0 NULL
> ^^^^
Sounds fair, but that way Powerdns cannot find them when PTR lookups are
requested. A lookup for 217.119.229.1 results in the following queries:
73091 Query select
content,ttl,prio,type,domain_id,name
from records where name='1.229.119.217.in-addr.arpa'
73091 Query select
content,ttl,prio,type,domain_id,name
from records where type='SOA' and name='1.229.119.217.in-addr.arpa'
73091 Query select
content,ttl,prio,type,domain_id,name
from records where type='SOA' and name='229.119.217.in-addr.arpa'
73091 Query select
content,ttl,prio,type,domain_id,name
from records where type='SOA' and name='119.217.in-addr.arpa'
73091 Query select
content,ttl,prio,type,domain_id,name
from records where type='SOA' and name='217.in-addr.arpa'
Of course it cannot find "1.0/25.229.119.217.in-addr.arpa, because it
cannot know all possible permutations of a given ip address with every
CIDR mask. (or a lot of lookups would be required).
My humble guess is that, for speed issues, the in-addr.arpa addresses
should be stored in the 'records' table without CIDR mask, but in case of
AXFR the addresses should be rewrited to include the CIDR mask according
to the 'name' in the 'domains' table. Or is there a better solution?
Thanks!
Willem
More information about the Pdns-users
mailing list