[Dnsmasq-discuss] IPv6 ra-advrouter mode doesn't create the appropriate AAAA records
Nilesh Govindrajan
me at nileshgr.com
Tue Oct 14 16:44:58 BST 2014
On Tue, Oct 14, 2014 at 8:39 AM, Nilesh Govindrajan <me at nileshgr.com> 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.
>
> I'm using DNSMasq v2.72 installed from debian unstable repository.
>
> I'm quite new to IPv6, so don't assume things :)
Managed to get things working with both radvd and dnsmasq... I had to
enable SLAAC in radvd because Android doesn't support DHCPv6 yet.
For those interested, this is my radvd config:
interface eth0 {
AdvSendAdvert on;
AdvLinkMTU 1472;
AdvManagedFlag on;
prefix <subnet>/<prefix>
{
AdvOnLink on;
AdvAutonomous on;
};
RDNSS <ipv6 address of my cubieboard which is where the tunnel is
connected> {
};
DNSSL <domain name> {
};
};
and dnsmasq config:
bogus-priv
resolv-file=/etc/resolv.dnsmasq
strict-order
interface=eth0
interface=lo
no-dhcp-interface=lo
bind-interfaces
domain=<dom>
dhcp-option=option:domain-search,<dom>
expand-hosts
dhcp-range=<subnet>::2, <subnet>:ffff:ffff:ffff:ffff, 64, infinite
dhcp-option=option6:dns-server,[<ip of cubieboard>]
dhcp-range=192.168.0.11, 192.168.0.254, 255.255.255.0, 24h
dhcp-option=option:router,192.168.0.1
dhcp-option=option:dns-server,192.168.0.10
#dhcp-option=option:ntp-server,192.168.0.10
dhcp-option=option:mtu,1472
dhcp-authoritative
cache-size=50000
dhcp-hostsfile=/etc/dnsmasq.hosts
and in /etc/dnsmasq.hosts I have static entries for my computers.
Since Android doesn't support DHCPv6 yet, there's no point in putting
stuff there. It generates a new SLAAC IP every time it connects to
wifi.
More information about the Dnsmasq-discuss
mailing list