Reverse DNS on a local network
Mathias Körber
mathias at koerber.org
Mon Oct 16 17:30:10 UTC 2000
If you only have one set of nameservers, which are
authoritative for your zones and also get queried by
your clients (ie in listed intheir /etc/resolv.conf or equivalent),
you would set up your nameserver to be authoritative for
213.168.192.in-addr.arpa
(and for other reverse zones according to the IP address blocks
you use).=20
You should also set your nameservers up to be authoritative for
your own internal 'root' zone, and delegate the required zones
(in this case bootc.net, 219.168.192.in-addr.arpa et al) to your own
servers.
named.conf (on the primary; on the slave make these type slave!)
----------
[...]
zone "." {
type master;
file "root.db";
[...]
}; =09
zone "bootc.net" {
type master;
file "bootc.net.db";
[...]
};
zone "213.168.192.in-addr.arpa" {
type master;
file "219.168.192.in-addr.arpa.db";
[...]
};
[...]
root.db
-------
@ IN SOA ...
IN NS ns1.bootc.net.
IN NS ns2.bootc.net.
ns1.bootc.net. IN A 192.168.213.15
ns2.bootc.net. IN A 192.168.213.16
; delegate your forward domain
bootc.net. IN NS ns1.bootc.net.
IN NS ns2.bootc.net.
; delegate your reverse domain
213.168.192.in-addr.arpa. IN NS ns1.bootc.net.
IN NS ns2.bootc.net.
; do the same for each /24 you use under 192.168./16 !
213.168.192.in-addr.arpa.db:
----------------------------
@ IN SOA .....
IN NS ns1.bootc.net.
IN NS ns2.bootc.net.
1 IN PTR garguantua.bootc.net.
2 IN PTR tequila.bootc.net.
3 IN PTR dustball.bootc.net.
15 IN PTR ns1.bootc.net.
16 IN PTR ns2.bootc.net.
=09
If your clients query nameservers that are not to be authoritative
for your zones, then you would have to set these up with your own
named.ca (hints) file pointing at your authoritative nameservers
too, so that they can find the internal root servers.
This is not specific to the reverse setup though.
named.ca
--------
. IN NS ns1.bootc.net.
. IN NS ns2.bootc.net.
ns1.bootc.net. IN A 192.168.213.15
ns2.bootc.net. IN A 192.168.213.16
HTH
HAND
> -----Original Message-----
> From: news at news4.isdnet.net [mailto:news at news4.isdnet.net]On Behalf Of
> Chris Boot
> I was wondering how to setup reverse DNS on my local network's=20
> BIND server.
> I've setup forward DNS OK, but I can't seem to get reverse DNS. =20
> My network
> is in no way connected to the internet (this is for the future).
>=20
> Domain: bootc.net
> IP Addresses: 192.168.213.*
>=20
> Computers & IP:
> gargantua 192.168.213.1
> tequila 192.168.213.2
> dustball 192.168.213.3
>=20
> What additions to the named.conf file would I need? Do I need =
anything
> else?
>=20
> Please email me as well as port to the newsgroup.
>=20
> Thanks in advance,
>=20
> --=20
> Chris Boot
> bootc at worldnet.fr
>=20
>=20
>=20
More information about the bind-users
mailing list