]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: when DNS/TCP doesn't work, try DNS/UDP again
authorLennart Poettering <lennart@poettering.net>
Fri, 8 Jan 2016 01:29:02 +0000 (02:29 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 11 Jan 2016 18:39:59 +0000 (19:39 +0100)
commit6a1a5eec43892dee3ff6e208bceb1931c25c782e
treeb82947accaac31a912efacc2334b7fab08279908
parent8d10d62055cd1e9e6e8e0a1ae050fbba36fb9bcd
resolved: when DNS/TCP doesn't work, try DNS/UDP again

If we failed to contact a DNS server via TCP, bump of the feature level to UDP again. This way we'll switch back
between UDP and TCP if we fail to contact a host.

Generally, we prefer UDP over TCP, which is why UDP is a higher feature level. But some servers only support UDP but
not TCP hence when reaching the lowest feature level of TCP and want to downgrade from there, pick UDP again. We this
keep downgrading until we reach TCP and then we cycle through UDP and TCP.
src/resolve/resolved-dns-server.c