OpenBSD // rDNS // nsd // classless reverse PTR

NET: 1.2.3.16/28

the nsd.conf:
zone:
name: "3.2.1.in-addr.arpa"
zonefile: master/3.2.1.reverse

zone:
name: “16/28.3.2.1.in-addr.arpa”
zonefile: master/16_28.3.2.1.reverse

the 3.2.1.reverse:
$ORIGIN 3.2.1.in-addr.arpa. ; default zone domain
$TTL 86400 ; default time to live

@ IN SOA ns.domain.com. admin.domain.com. (
2016010203 ; serial number
28800 ; Refresh
7200 ; Retry
864000 ; Expire
86400 ; Min TTL
)
16/28 NS ns.domain.com.

17 CNAME 17.16/28.3.2.1.in-addr.arpa.
18 CNAME 18.16/28.3.2.1.in-addr.arpa.

the 16_28.3.2.1.reverse:
$ORIGIN 16/28.3.2.1.in-addr.arpa. ; default zone domain
$TTL 86400 ; default time to live

@ IN SOA ns.domain.com. admin.domain.com. (
2016010203 ; serial number
28800 ; Refresh
7200 ; Retry
864000 ; Expire
86400 ; Min TTL
)
@ NS ns.domain.com.

17 IN PTR mx.domain.com.
18 IN PTR nix.domain.com.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.