[Dnsmasq-discuss] autogenerating dns records

Vladislav Grishenko themiron at mail.ru
Thu Apr 25 10:17:34 BST 2013


Hi Simon,

Really, good feature, thanks for including it.
Have a suggestion not for naming, but for ipv6 reverse domain algo. Since
ipv6 domain representation could be quite long, it can be shortened.
For example, using duotrigesimal system (base 32) + zero compression:
2001:db8::1 => 1zigr64z21
2001:db8:1234:5678:90ab:cdef:1234:5678 => ojl839stdua19spakh4gr64z21

Here's working minimalistic IPv6 Reverse DNS daemon I'm using (with dnsmasq
conf server=/domain.local/127.0.0.1#5353) which implements the approach.
https://code.google.com/p/rev6dns/

$ rev6dns -a 127.0.0.1 -p 5353 ns.domain.local domain.local 2001:db8::/32
$ dig -x 2001:db8::1 @127.0.0.1 -p 5353
;; ANSWER SECTION:
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa.
3994671 IN PTR 1zigr64z21.domain.local.
$ dig -x 2001:db8:1234:5678:90ab:cdef:1234:5678 @127.0.0.1 -p 5353
;; ANSWER SECTION:
8.7.6.5.4.3.2.1.f.e.d.c.b.a.0.9.8.7.6.5.4.3.2.1.8.b.d.0.1.0.0.2.ip6.arpa.
3994671 IN PTR ojl839stdua19spakh4gr64z21.domain.local.
$ dig aaaa 1zigr64z21.domain.local. @127.0.0.1 -p 5353
;; ANSWER SECTION:
1zigr64z21.domain.local. 62511  IN      AAAA    2001:db8::1

Best Regards, Vladislav Grishenko

> -----Original Message-----
> From: dnsmasq-discuss-bounces at lists.thekelleys.org.uk [mailto:dnsmasq-
> discuss-bounces at lists.thekelleys.org.uk] On Behalf Of Simon Kelley
> Sent: Thursday, April 25, 2013 1:48 AM
> To: Vishvananda Ishaya
> Cc: dnsmasq discussion list
> Subject: Re: [Dnsmasq-discuss] autogenerating dns records
> 
> On 08/04/13 18:07, Vishvananda Ishaya wrote:
> > Thanks appreciate the feedback. I am going to do some testing to see
> > how expensive it is to add a whole bunch to the hosts file for now.
> > If that is too painful I will work on a patch.
> >
> > Vish
> >
> 
> 
> I've been working through my post-release TODO list. Please try
> 2.67test3 which has a new --synth-domain option.
> 
> Suggestions as to a better name for the option gratefully received.
> 
> Cheers,
> 
> Simon.
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss




More information about the Dnsmasq-discuss mailing list