RDNSS

acronym

networkingsecurity

Kept in this browser · My desk

Stands for: Recursive DNS Server option

The Router Advertisement option, type 25 in RFC 8106, with which an IPv6 router tells hosts the addresses of recursive DNS servers, without DHCPv6.

It completes stateless autoconfiguration: from one advertisement a host learns its prefix, its default router and its resolver. The same convenience lets a rogue advertisement set a host's resolver as easily as its gateway, the first threat RFC 8106 lists. In October 2020 Microsoft's workaround for CVE-2020-16898, a remote code execution flaw in the Windows handling of Router Advertisements, was to switch RDNSS processing off, which points to where the flaw lived.

What it is. RFC 8106 (March 2017), by Jaehoon Paul Jeong, Soohong Daniel Park, Luc Beloeil and Syam Madanapalli, defines two Neighbor Discovery options for DNS configuration: Recursive DNS Server (RDNSS, type 25) and DNS Search List (DNSSL, type 31). It obsoletes RFC 6106 (November 2010), mainly to raise the default lifetime so the options do not expire on lossy links. Both travel inside the ICMPv6 Router Advertisement of RFC 4861, the message routers send periodically and in answer to solicitations, from a link-local source with a hop limit of 255.

How it works. The option carries a type (25), a length in units of eight bytes, two reserved bytes, a 32-bit lifetime and one or more IPv6 addresses. 'The minimum value is 3 if one IPv6 address is contained in the option. Every additional RDNSS address increases the length by 2': eight bytes of header and lifetime plus sixteen per address. The lifetime 'SHOULD by default be at least 3 * MaxRtrAdvInterval'; all ones means infinity and zero means the addresses 'MUST no longer be used'. Written out for one address with an 1,800-second lifetime the option begins 19 03 00 00 00 00 07 08 and continues with the sixteen bytes of the server's address. RFC 8106 also covers how hosts combine RA-provided and DHCPv6-provided DNS information; Microsoft's 2020 note records that on Windows DHCPv6 takes precedence over RA-based configuration.

Security history. RFC 8106's threats section starts with this option: 'an attacker could send an RA with a fraudulent RDNSS address, misleading IPv6 hosts into contacting an unintended DNS server for DNS name resolution', and a fraudulent DNSSL can make unqualified names resolve to an attacker's host. RFC 6104 adds why RAs are worse than DHCP here: a multicast rogue RA reaches every host immediately rather than at each lease renewal. Separately, CVE-2020-16898, made public on 13 October 2020, was a remote code execution vulnerability in which the Windows TCP/IP stack 'improperly handles ICMPv6 Router Advertisement packets'; the National Vulnerability Database scores it 8.8 (adjacent network). Microsoft's published workaround was 'Disable ICMPv6 RDNSS', which 'disables RA-based DNS configuration', with a note to confirm first that the network does not rely on it.

In practice. On networks that hand out DNS through DHCPv6, or that run no IPv6 at all, RA-based DNS on hosts is surface without benefit, and hardening can switch it off (Windows has a per-interface setting; Linux's accept_ra governs whether advertisements are processed at all). On the infrastructure side the answer is RA Guard, which lets RAs in only on router-facing ports, so neither false resolvers nor malformed options reach hosts. In a capture the signs are an RA from an unexpected link-local or hardware address, or an RDNSS address that is not the network's resolver.

The companion option and the lifetime change. RFC 8106 defines DNSSL, type 31, beside RDNSS: a list of domain suffixes the host appends to unqualified names, the IPv6 counterpart of DHCP's option 15. Its threat is stated in the same breath: 'an attacker can let IPv6 hosts resolve a hostname without a DNS suffix into an unintended host's IP address with a fraudulent DNSSL', the same mechanism that makes short names dangerous in the multicast fallbacks. The reason RFC 8106 replaced RFC 6106 is operational: RFC 6106's lower bound for the lifetime, twice MaxRtrAdvInterval, 'was shown to lead to the expiry of these options on links with a relatively high rate of packet loss', so the new default is three times MaxRtrAdvInterval. For a defender the lifetime also matters in reverse: a rogue advertisement with a long or infinite RDNSS lifetime keeps the false resolver in place after the rogue device has gone, until a later advertisement or a reboot clears it. The option is only accepted inside a Router Advertisement, which RFC 4861 requires to come from a link-local source with a hop limit of 255, so the threat it carries is entirely local to the link.

Neighbours. Router Advertisements and Neighbor Discovery, SLAAC, DHCPv6 and its O flag, RA Guard, DNSSL, and the rogue DHCP server, whose option 6 is the IPv4 equivalent.

Also known as: recursive dns server option, rdnss option, ra dns option, rfc 8106, rfc 6106, cve-2020-16898, bad neighbor

← Back to R Back to the glossary