Skip to content

Commit

Permalink
network: Disable RoutesToDNS
Browse files Browse the repository at this point in the history
Flatcar VMs on Azure with multiple nics fail to provision correctly because of
multiple routes to wireserver (168.63.129.16) with the same metric, and
wireserver only responds to 'ready' signals on the primary nic. The primary nic
gets an explicit route to wireserver through dhcp. It turns out systemd is
adding the extra routes because wireserver is also the dhcp and dns server, and
the default RoutesToDNS=true setting is the reason.

This behavior is non-standard and I don't think it's expected on any platform.
Disable this behavior by default.

Signed-off-by: Jeremi Piotrowski <[email protected]>
  • Loading branch information
jepio committed Oct 4, 2023
1 parent 9eaeae2 commit 007f4f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dracut/03flatcar-network/zz-default.network
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ IPv6AcceptRA=true
[DHCP]
UseMTU=true
UseDomains=true

[DHCPv4]
RoutesToDNS=false

0 comments on commit 007f4f0

Please sign in to comment.