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

Nilesh Govindrajan me at nileshgr.com
Wed Oct 15 16:09:23 BST 2014


Okay now with these settings, I think I'm able to achieve what I want
- DHCPv6 for those who support it (assigned via hostsfile) and slaac +
name mapping for Android:

enable-ra
dhcp-range=<subnet>::10, <subnet>:ffff:ffff:ffff:ffff, ra-names, slaac, infinite
dhcp-option=option6:dns-server,[<subnet>::4]


Where ::4 is the IP address of my tunnel end point (cubieboard).

On Wed, Oct 15, 2014 at 7:14 AM, Nilesh Govindrajan <me at nileshgr.com> wrote:
> The relevant dnsmasq config, this time radvd is disabled:
>
> enable-ra
> dhcp-range=<subnet>:0000:0000:0000:2,
> 2001:470:1f13:d18:ffff:ffff:ffff:0000, 64, infinite
> dhcp-range=<subnet>:ffff:ffff:ffff:0001,
> 2001:470:1f13:d18:ffff:ffff:ffff:ffff, 64, infinite, ra-names
>
> On Wed, Oct 15, 2014 at 6:40 AM, Nilesh Govindrajan <me at nileshgr.com> wrote:
>> 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.



More information about the Dnsmasq-discuss mailing list