Open darkdrgn2k opened 6 years ago
Confirmed this issue on MacOS
systemd-networkd has a race condition - the dhcp service is configured before the uplink port is fully setup. Thus the dhcp service does not see any DNS (or NTP) settings when it is first run.
Additionally, the version of systemd-networkd in stretch looks like it will only reconfigure the dhcp server if you restart the whole daemon - which just causes the same race.
Finally, a fix included in systemd v234 could help (see https://github.com/systemd/systemd/pull/6116) by allowing a down/up on the downstream interface to trigger a reconfigure of the dhcp service
Let's grab systemd v236 from stretch-backports
?
Connection to HostAP establishes fine, but no DNS servers are offered over dhcp.