SixXS::Sunset 2017-06-06

FAQ : DNS : How do I setup a reverse DNS?

Other FAQ sections

How do I setup a reverse DNS?

For those of you not yet familiar with the topic 'reversed DNS' or the files, please read up on that and when you are confident that you are running a working named (Bind 8.2.2+ will do fine) with a 'standard issue reversed DNS zone' like, continue here.

Tip Note that user reverse dns options is only available for subnets and not for tunnels.

Warning Don't forget to read about our thoughts on DNS Pollution.

Here is an example for 2001:db8:302::/48, which is part of the official IPv6 documentation prefix, so don't use it for real.
First, declare our authority, analogous to IPv4 zones and domain names.

$TTL 604800
@	IN	SOA (
		1978022513	; Serial
		10800		; Refresh
		3600		; Retry
		2419200		; Expire
		604800 )	; Default TTL

		TXT  "2001:db8:302::/48 Example IPv6 reverse"

Remember to use $ORIGIN a lot which makes managing reverse more doable.
The following makes the address 2001:db8:302::1 resolve. The origin bounds the reverse at a /64.


Here, we delegate 2001:db8:302:1::/64 to the servers and 2001:db8:302:2::/64 to the servers.

1		NS
2		NS

Warning: don't forget the trailing dot's.

Assuming you have set up a zonefile for your reversed delegation, the only other thing you have to do is tell named to load and administer the zone. Here's the entry in /etc/named.conf for the 2001:db8:302::/48 delegation:

zone ""
	type master;
	file "/etc/bind/pz/";

Tip You can easily verify if your dns is working by running:

dig +trace

And seeing where it ends up.

Static Sunset Edition of SixXS
©2001-2017 SixXS - IPv6 Deployment & Tunnel Broker