]> git.ipfire.org Git - thirdparty/systemd.git/commit
wait-online: add support for waiting for DNS configuration
authorNick Rosbrook <enr0n@ubuntu.com>
Thu, 19 Sep 2024 19:59:50 +0000 (15:59 -0400)
committerNick Rosbrook <enr0n@ubuntu.com>
Tue, 28 Jan 2025 13:49:49 +0000 (08:49 -0500)
commit359db7e9b9908a89dd7d94170f0bafdc3fe11fc7
treee3590ee433c8f927e30d7e5ef4e44a4d15db5728
parent54401c6fdf5385d158ea8b91949b8b5391e0da95
wait-online: add support for waiting for DNS configuration

Add a new flag to systemd-networkd-wait-online, --dns, to allow waiting
for DNS to be configured.

DNS is considered configured when at least one DNS server is accessible.
If a link has the property DefaultRoute=yes (either by explicit
configuration, or because there are no routing-only domains), or if the
search domain '.' is configured, wait for link-specific DNS to be
configured. Otherwise, global DNS servers may be considered.
man/systemd-networkd-wait-online.service.xml
src/network/meson.build
src/network/wait-online/dns-configuration.c [new file with mode: 0644]
src/network/wait-online/dns-configuration.h [new file with mode: 0644]
src/network/wait-online/link.c
src/network/wait-online/link.h
src/network/wait-online/manager.c
src/network/wait-online/manager.h
src/network/wait-online/wait-online.c