[Dnsmasq-discuss] IPv6 ra-advrouter mode doesn't create the appropriate AAAA records

Nilesh Govindrajan me at nileshgr.com
Wed Oct 15 02:10:28 BST 2014


Well now I tried setting two dhcp-range ::1 to ::100 with infinite lease
time, and ::101 to ::200 with ra-names

Also added enable-ra

My phone doesn't get an AAAA mapping neither an IPv6 address.
On 15-Oct-2014 1:16 am, "Simon Kelley" <simon at thekelleys.org.uk> wrote:

> On 14/10/14 19:33, Nilesh Govindrajan wrote:
> > On Tue, Oct 14, 2014 at 11:19 PM, Simon Kelley <simon at thekelleys.org.uk>
> wrote:
> >> On 14/10/14 04:09, Nilesh Govindrajan wrote:
> >>> Hi list,
> >>>
> >>> I'm playing with IPv6 after getting a tunnel from HE. I have
> >>> configured dnsmasq as:
> >>>
> >>> domain-needed
> >>> resolv-file=/etc/resolv.dnsmasq
> >>> strict-order
> >>> interface=eth0
> >>> interface=lo
> >>> no-dhcp-interface=lo
> >>> bind-interfaces
> >>> expand-hosts
> >>> domain=lan
> >>> dhcp-range=192.168.0.11,192.168.0.254,255.255.255.0,24h
> >>> dhcp-range=<my ipv6 subnet>::, ra-advrouter
> >>> enable-ra
> >>> dhcp-option=option:router,192.168.0.1
> >>> dhcp-option=option:dns-server,192.168.0.10
> >>> dhcp-option=option6:dns-server
> >>> dhcp-option=option:domain-search,lan
> >>> dhcp-option=option:mtu,1472
> >>> dhcp-option=option6:domain-search,lan
> >>> dhcp-authoritative
> >>> cache-size=50000
> >>>
> >>>
> >>> All machines on my network get IPv6 addresses, but when I try to find
> >>> them via DNS request, it fails (doesn't return an AAAA record). But
> >>> the corresponding A records exist and they work properly.
> >>> This works if I set ra-names mode, but I don't want to use SLAAC.
> >>
> >> You _are_ using SLAAC, that's what ra-advrouter does.
> >>
> >> To use DHCPV6, use something like
> >>
> >> dhcp-range=<my ipv6 subnet>::2, <my ipv6 subnet>::200
> >>
> >>
> >> That way your clients should get DHCPv6 leases, and from them, AAAA
> records.
> >>
> >> Cheers,
> >>
> >> Simon.
> >>
> >>>
> > I think with the current setup both SLAAC and DHCPv6 are being used
> > because I see two IPs on each machine.
> >
>
> With the configuration you quote above, there will be no DHCPv6. SLAAC
> normally results in at least two addresses, one is derived from the MAC
> address of the interface, and the second is a random "privacy address".
> The later will be regularly replaced.
>
> IPv6 is a whole different world.
>
> You're right  that Android can't do DHCPv6. That was the original
> motivation for the ra-names mode in dnsmasq.
>
>
> Cheers,
>
> Simon.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20141015/4d2f5ab0/attachment.html>


More information about the Dnsmasq-discuss mailing list