Pete Zaitcev (zaitcev) wrote,

IPv6 DNS

IIRC I wrote this without a web search, but syntax is a bit annoying, so just in case. Assuming the previously mentioned network fd2d:acfb:74cc/48, the named.conf contains:

zone "zaitcev.lan" in {
  type master;
  notify no;
  file "master/zaitcev.lan";
};
zone "c.c.4.7.b.f.c.a.d.2.d.f.ip6.arpa" in {
  type master;
  notify no;
  file "master/fd2d.acfb.74cc";
};

Then, zaitcev.lan contains:

; Main server MSI Wind PC (2009/01-)
elanor		IN	A	192.168.128.1
		IN	AAAA	fec0:0:0:1:0:0:c0a8:8001
		IN	AAAA	fd2d:acfb:74cc:1::1
		IN      MX      10 elanor
;
lembas		IN	A	192.168.128.11
		IN	AAAA	fd2d:acfb:74cc:1:222:68ff:fb14:e991
*.lembas	IN	CNAME	lembas

And fd2d.acfb.74cc contains:

; #1
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.0.0  PTR elanor-wlan.zaitcev.lan.
1.9.9.e.4.1.b.f.f.f.8.6.2.2.2.0.1.0.0.0  PTR lembas.zaitcev.lan.

Really the break can be done at any boundary. Using /48 seems convenient.

Reversing the address is not hard, but tedious. So run "host fd2d:acfb:74cc:2:21e:65ff:fecf:3c10" (address copy-pasted from ip show addr dev wlan"). It will print "Host 0.1.c.3.f.c.e.f.f.f.5.6.e.1.2.0.2.0.0.0.c.c.4.7.b.f.c.a.d.2.d.f.ip6.arpa not found: 3(NXDOMAIN)". Then copy-paste that.

BTW, one annoying thing is how MAC gets stuck into the address. This allows Facebook to track me across any wireless hotspot, without any browser fingerprinting or cookies.

Tags: ipv6
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded  

  • 2 comments