]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: add a helper to check if DNS server is accessible
authorNick Rosbrook <enr0n@ubuntu.com>
Tue, 15 Oct 2024 20:30:52 +0000 (16:30 -0400)
committerNick Rosbrook <enr0n@ubuntu.com>
Mon, 27 Jan 2025 14:32:24 +0000 (09:32 -0500)
commitb9335a329db0ea7e2aa4aa9ca1853abb770cdb93
tree5893a352e58d5f8cb45f34bd2e46a7d9ef722dc3
parent428c99997d19a132e231313ed09625ddcebbd38c
resolved: add a helper to check if DNS server is accessible

We check this by opening a UDP socket and attempting to connect. We do
not send any traffic on it, but this will tell us if there are routes to
the DNS server.

This will be used in a later commit.
src/resolve/resolved-dns-server.c
src/resolve/resolved-dns-server.h
src/resolve/resolved-link.c