reverse zone for < class C???
Michael Kjorling
michael at kjorling.com
Fri Jun 29 19:35:23 UTC 2001
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Read RFC 2317 and talk to your ISP. It explains how to do this
properly. For example, here's my setup:
In named.conf:
zone "192-28.238.88.213.in-addr.arpa" in {
type master;
file "zones/masters/named.192-28.238.88.213.in-addr.arpa";
allow-transfer { slaves; };
allow-query { any; };
};
In zones/masters/named.192-28.238.88.213.in-addr.arpa:
$ORIGIN 192-28.238.88.213.in-addr.arpa.
$TTL 1D
@ IN SOA ulv.mcpoolen.se. hostmaster.mcpoolen.se. (
2001062501 ; Serial
1H ; Refresh
30M ; Retry
2W ; Expire
1D ) ; Default-TTL
@ IN NS ulv.mcpoolen.se.
@ IN NS varg.mcpoolen.se.
194 IN PTR farkas.mcpoolen.se.
197 IN PTR ulv.mcpoolen.se.
200 IN PTR susi.mcpoolen.se.
201 IN PTR waya.mcpoolen.se.
204 IN PTR varg.mcpoolen.se.
206 IN PTR lupus.mcpoolen.se.
My ISP has delegated it like this:
192-28.238.88.213.in-addr.arpa. 86400 IN NS ulv.mcpoolen.se.
192-28.238.88.213.in-addr.arpa. 86400 IN NS varg.mcpoolen.se.
192.238.88.213.in-addr.arpa. 86400 IN CNAME 192.192-28.238.88.213.in-addr.arpa.
193.238.88.213.in-addr.arpa. 86400 IN CNAME 193.192-28.238.88.213.in-addr.arpa.
194.238.88.213.in-addr.arpa. 86400 IN CNAME 194.192-28.238.88.213.in-addr.arpa.
; ...
Also, drop the nospam crap. The comp.protocols.dns.bind newsgroup is
gatewayed (two-way) into a mailing list, and stuff like that will
never buy you anything except annoyed people. I have been very active
on this list for the last three months, and never got even one spam
mail because of it.
Michael Kjörling
On Jun 29 2001 12:27 -0500, Q wrote:
> I am trying to setup a reverse zone for half of a class C allocated to us.
> However, I can't seem to get it working. If I setup the named.conf like:
>
> zone "128.180.188.208.IN-ADDR.ARPA"{
> type master;
> file "128.180.188.208.in-addr.arpa";
> };
>
> and the file like:
>
>
> @ IN SOA ns1.domain.net. administrator.domain.net.
> (
> 2001062902 ; serial
> 3600 ; refresh
> 900 ; retry
> 1209600 ; expire
> 3600 ; default_ttl
> )
> 129 IN PTR gw2.domain.net.
> 130 IN PTR gw.domain.net.
> 131 IN PTR max1.domain.net.
> 163 IN PTR news.domain.net.
> 128 IN NS ns1.domain.net.
> 128 IN NS ns2.domain.net.
>
>
> it will not work at all even on servers that use it for the DNS server.
> However, if I change it to this:
>
>
> zone "180.188.208.IN-ADDR.ARPA"{
> type master;
> file "128.180.188.208.in-addr.arpa";
> };
>
>
>
>
> @ IN SOA ns1.domain.net. administrator.domain.net.
> (
> 2001062902 ; serial
> 3600 ; refresh
> 900 ; retry
> 1209600 ; expire
> 3600 ; default_ttl
> )
> 129 IN PTR gw2.domain.net.
> 130 IN PTR gw.domain.net.
> 131 IN PTR max1.domain.net.
> 163 IN PTR news.domain.net.
> @ IN NS ns1.domain.net.
> @ IN NS ns2.domain.net.
>
> Then it works servers that have it as the DNS server, but of course I am
> telling it that it has the whole class C when it does not. And if I leave
> it this way, then it does not work remotely when another name server tries
> to do a reverse lookup. I assume that this is because I technically don't
> have the right zone setup. Does anyone have any ideas or an example of how
> to setup a reverse zone for half a class C?
>
>
- --
Michael Kjörling - michael at kjorling.com - PGP: 8A70E33E
"We must be the change we wish to see" (Mahatma Gandhi)
^..^ Support the wolves in Norway -- go to ^..^
\/ http://home.no.net/ulvelist/protest_int.htm \/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE7PNiIKqN7/Ypw4z4RAlq7AJ9Lw4bejnq2uB6uTNQCp8EkSZBm3QCeOhW2
YNS6pPHxkrM72F8KeAkImcQ=
=d9eL
-----END PGP SIGNATURE-----
More information about the bind-users
mailing list