[Dnsmasq-discuss] ra-names without router advertisements

Simon Kelley simon at thekelleys.org.uk
Sun May 4 20:53:00 UTC 2014


On 03/05/14 19:44, Michael Stilkerich wrote:
> Hi,
> 
>   I'd like to use dnsmasq as DNS and DHCP(v6) server on my home network.
> The box running dnsmasq is not the router; the router is a box provided
> by my internet provider that does router advertisements with the A flag
> set. The dnsmasq box gets the IPv6 prefix from the router advertisements
> of the router.
> 
> I'd also like dnsmasq to answer AAAA-DNS requests for my local hosts.
> For this, the ra-names seemed useful, since I'd be fine with all my
> hosts using SLAAC only. However, setting the ra-names options also
> causes dnsmasq to advertise the box it's running on as the router, which
> it isn't.
> 
> Is there a technical reason/requirement that ra-names turns on the
> router advertisements?


There _may_ be. When a host gets a DHCPv4 lease, dnsmasq sends ICMPv6
pings and gratuitous RAs whilst it's verifying that the hosts is using
the expected IPv6 address. Since the host is likely to send it's own
requests to RAs when it arrives on a network, this process will probably
work without being able to trigger gratuitous RAs, but that's never been
tested.

Cheers,

Simon.

> 
> Thanks,
>   -Mike
> 
> Here's my config:
> 
> domain-needed
> bogus-priv
> no-resolv
> server=192.168.0.4
> interface=eth0
> domain=mylocaldomain.de
> 
> # DHCPv4, static and dynamic range
> dhcp-range=192.168.0.50,192.168.0.250,255.255.255.0,12h
> dhcp-range=192.168.0.1,192.168.0.49,static,255.255.255.0,12h
> read-ethers
> dhcp-option=option:router,192.168.0.4
> 
> # DHCPv6
> dhcp-range=::1,::ffff:ffff:ffff:ffff,constructor:eth0,ra-names
> dhcp-option=option6:dns-server,[::]
> 
> dhcp-authoritative
> 
> 
> _______________________________________________
> 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