[OpenWrt-Devel] [PATCH RESEND] dnsmasq: add config option for ra_names

Dominique Martinet asmadeus at codewreck.org
Mon Jan 4 06:02:08 EST 2016

Felix Fietkau wrote on Mon, Jan 04, 2016:
> On 2016-01-04 11:21, Dominique Martinet wrote:
> > Dominique Martinet wrote on Mon, Jan 04, 2016:
> >> I actually hadn't upgraded yet when I sent this, it looks like there has
> >> been alot of work towards integrating IPv6 more generally since I had
> >> written this patch. I agree we can do better nowadays, I'll take a look
> >> at it... Except that I noticed dnsmasq is compiled with no-dhcpv6?
> >> 
> >> What is the reasoning for it?
> > 
> > Answering myself as I noticed the dnsmasq variants packaged, not sure
> > how to make a change to the init script if and only if said variant is
> > in though. Happy to take suggestions.
> Actually, the main reason is the fact that odhcpd handles dhcpv6 and
> router advertisement. Do you really need dnsmasq to do dhcpv6 for this
> to work?

Oh, hadn't noticed odhcpd running.

The full option for ra-names is as follow:

(where the prefix is mine and 12h is the dhcpv4 lease time)

So yes, it will need dnsmasq to be compiled in with dhcpv6 and I cannot
think of any way to make it not try to handle it at the same time.

Not sure how to make it work at all with this setup though, from a
theorical point of view dnsmasq gets the mac/hostname relation from the
dhcp (v4) lease but only adds the ipv6 to the DNS when a RA is processed
(in dnsmasq logs SLAAC-CONFIRM); I assume if odhcpd handles the ipv6
then dnsmasq will not get/parse these anyway and will not be able to add
the dns automatically...

I'm seeing odhcpd has a "leasetrigger" option and the default script
makes dnsmasq reload the lease file, but ipv6 does not have a 'lease'
concept for RA so that file is empty...

I'm afraid this is going to end in me being selfish and using a 'fuller'
dnsmasq unfortunately, unless you have any idea there :/
Having the dns autoconfiguration for dynamic VMs/hosts/guests through
their dhcp hostname is kind of important to me.

Dominique Martinet | Asmadeus
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list