tomeshnet / mesh-orange

A small ramdisk system running modern Debian to support mesh networking on ARM single-board computers
https://tomeshnet.github.io/mesh-orange/
GNU General Public License v2.0
39 stars 7 forks source link

hostapd and dns #16

Open darkdrgn2k opened 6 years ago

darkdrgn2k commented 6 years ago

Connection to HostAP establishes fine, but no DNS servers are offered over dhcp.

darkdrgn2k commented 6 years ago

screenshot_20180108-165320

benhylau commented 6 years ago

Confirmed this issue on MacOS

hamishcoleman commented 6 years ago

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

benhylau commented 6 years ago

Let's grab systemd v236 from stretch-backports?