[Dnsmasq-discuss] [PATCH] RADV: Send same RDNSS address as in DHCPv6
Simon Kelley
simon at thekelleys.org.uk
Wed Jan 20 20:03:50 GMT 2016
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 16/01/16 15:10, Pali Rohár wrote:
> On Friday 15 January 2016 22:37:46 you wrote:
>> On 01/01/16 21:07, Pali Rohár wrote:
>>> On Friday 01 January 2016 20:58:42 Simon Kelley wrote:
>>>> Does the existing behaviour cause you problems? The rationale
>>>> for why it behaves the way it does is that link-local
>>>> addresses are good IF client and server are on the same link,
>>>> since there's no possibility of addresses changing or
>>>> renumbering. A client getting DNS server addresses from RADV
>>>> is by definition on the same link as the server. One getting
>>>> DNS addresses by DHCP is not (there may be a DHCP relay
>>>> involved) but has DHCP to handle renumbering.
>>>
>>> Hi! Reason is to provide same data over DHCPv6 and over RA.
>>> This is
>>>
>>> really useful to have consistency of connection data in whole
>>>
>>> network.
>>>
>>> When different addresses are sent over DHCPv6 and RA, correct
>>> client behaviour is to use both (different) addresses in DNS
>>> configuration.
>>>
>>> But when I'm running one SW which doing everything needed for
>>> IPv6
>>>
>>> client subnetwork configuration I would expect that this SW
>>>
>>> provide same data over all channels. Currently redundant
>>> information over DHCPv6 and RA is only DNS (for now).
>>
>> You can certainly configure it to do that, the default does
>> different things for RA and DHCPv6 for the reasons I gave. Have
>> you seen problems with those values when using RA and DHCP?
>
> Problems? Not something which break functionality. Just that OS
> adds two addresses (one l-l from RA and one from DHCPv6) to
> /etc/resolv.conf and both addresses represent just one recursive
> DNS (that where is running dnsmasq). Which I basically do not like
> as there is only one recursive/forwarder DNS server.
>
> Plus also that inconsistency on network that one configuration part
> of IPv6 addresses (RA) send different information as another
> configuration part (DHCPv6).
>
>> If so, that's a bug, that needs to be fixed, but otherwise, the
>> best solution for you may be to configure dnsmasq rather than
>> patching it.
>
> Ok, configuration option for behaviour which I want is also OK. But
> I dot want to hardcode full IPv6 address of machine where is
> running dnsmasq as this address can be changed in time (because it
> comes from DHCPv6 prefix delegation). Option --dhcp-range has
> already fix for it, it accept address suffix with
> constructor:<iface>.
>
> But for specifying RDNSS option in dnsmasq it is not possible to
> set global IPv6 address which comes from interface...
If you set the RDNSS address to be [::] then dnsmasq should substitute
a global address of the interface, for both DHCPv6 and RA.
Cheers,
Simon.
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
iQIcBAEBCAAGBQJWn+gmAAoJEBXN2mrhkTWiA8wP/0zYC2JWasg8zRkii/SXQShd
uBOa9NJUabltwnJnjcjYgbXAEnCEvVOuSPSaFSamLahkkF/879eBk0PABj+3jnAo
98ZGxgaVGVWuvtqirgEsk3/jQhr5aRnQWn34WaUbD+t0Md69DzCzB7bxXveSoN6W
KU8JUh9oVjEldOAkDfWwyLLcAIt01INPKwVgPjiwkMqH3y8+RSflu+MIiZpPWZg/
eASz+25n49WpLPA7tMfpR8AeXz6J9zUY+aNnhBunSDMLXZrVJQUsOWWO5UANqnDg
gGuGYEPthzEv7Gjq1Gmc2ZOuo55UgablWdD0srXWGhsWzHCGg7keN2LAiQQOCWxw
J20omXS4QUFZKKb/OX5SbFcNtoGYAXULJyAbLtzb/n9y0l8Dd3knBzDTBCshLB61
CdQNlugjlcPX7nre/33ltZAMwQe73N1XP7PVds4pwvZBg26v1JaJ96SoRnx6WE6h
50AHePA+gtb9dm1DEq3iBD1kSLyQUTGONvwPNSneIu0A4rCJBdYNJptCr70LIE9A
1Uc82q21FFnGDdMbKWPGQ+aSHQTAANH0UutSL26g498uMEqIrrt7Gr29y+jgRXpI
358CIJe466Ka7/7Ivd1CPpFZoSc2StVszjKc7UKHcDcIc1R+ZcWtE74B+hJnCamw
NhZmkSFczimqBDAZT1rv
=yOI0
-----END PGP SIGNATURE-----
More information about the Dnsmasq-discuss
mailing list