ndisc: honor IPv6AcceptRA.UseDNS when parsing RA options (#5071)
authorCédric Schieli <cschieli@gmail.com>
Mon, 16 Jan 2017 17:23:26 +0000 (18:23 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 16 Jan 2017 17:23:26 +0000 (12:23 -0500)
commitfe0252e5b8180f7358eb3780cd19722b0f6c998c
treef5efee763a4b8d3b4bb7fe1b77fba4206b49c68f
parente52b13cfc47a8181406a59b6fc30c01aa2934678
ndisc: honor IPv6AcceptRA.UseDNS when parsing RA options (#5071)

RDNSS and DNSLL options received in RA are always used, possibly breaking the resolution of private domains hosted on a local DNS server. When setting UseDNS=no in a [IPv6AcceptRA] section of a .network file, both RDNSS and DNSLL options in received RA should be ignored.

Fixes: #5040
src/network/networkd-ndisc.c