reverse-zone and subnet
Barry Margolin
barmar at genuity.net
Fri Jan 18 15:55:11 UTC 2002
In article <a2955c$gfu at pub3.rc.vix.com>,
Peter Pilsl <pilsl at goldfisch.at> wrote:
>
>bind 9.1.3 on linux
>
>Somehow I cant manage to create a appropriate settings for
>reverse-lookup on our subnet.
>
>The subnet we own is 213.229.42.96/255.255.255.248 (213.229.42.96/29)
>
>I tried the following approach:
>
>zone "29/96.42.229.213.in-addr.arpa" IN {
> type master;
> file "master/213.229.42.96";
> allow-query { any; };
>};
>
>and the zonefile looks like:
>
>$ORIGIN .
>$TTL 259200 ; 3 days
>29/96.42.229.213.in-addr.arpa IN SOA ns1.ihf-hr.org. pilsl.goldfisch.at. (
> 2002011804 ; serial
> 28800 ; refresh (8 hours)
> 7200 ; retry (2 hours)
> 2419200 ; expire (4 weeks)
> 86400 ; minimum (1 day)
> )
> NS ns1.ihf-hr.org.
> NS ns2.ihf-hr.org.
>
>$ORIGIN 42.229.213.in-addr.arpa.
>97 PTR gate.ihf-hr.org.
>98 PTR alpha.ihf-hr.org.
>102 PTR beta.ihf-hr.org.
>100 PTR gamma.ihf-hr.org
>
>
>however, named gives me
>Jan 18 13:32:31 server named[12614]: dns_master_load:
>master/213.229.42.96:14: ignoring out-of-zone data
>(97.42.229.213.in-addr.arpa)
>Jan 18 13:32:31 server named[12614]: dns_master_load:
>master/213.229.42.96:15: ignoring out-of-zone data
>(98.42.229.213.in-addr.arpa)
>....
>
>
>what am I doing wrong here ?
The second $ORIGIN line is wrong. The zone is
29/96.42.229.213.in-addr.arpa, not 42.229.213.in-addr.arpa.
Why do you bother with the two $ORIGIN lines at all? The default origin is
the zone name, so if you change the SOA record to use the special name "@"
then everything should work right:
@ IN SOA ...
IN NS ...
97 PTR ...
98 PTR ...
--
Barry Margolin, barmar at genuity.net
Genuity, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
More information about the bind-users
mailing list