Files
tailscale/net
Nick Khyl 0afa9614d3 net/dns: stage the new hosts file outside of the etc directory on Windows
atomicfile.WriteFile creates its temporary file next to the target,
and changes in System32\drivers\etc make the DNS Client service reload
the hosts file. Besides the extra reloads, the service may then have
the hosts file open just as we try to replace it.

In this PR, we create the temporary file in System32\drivers instead,
which is on the same volume, and move it into place with
atomicfile.Rename.

Updates #21001
Updates #5753
Updates #8161
Updates #21617
Updates #14327
Updates tailscale/corp#52076

Signed-off-by: Nick Khyl <[email protected]>
2026-11-23 12:48:28 -08:00
..
2026-07-10 17:39:16 -07:00
2026-11-12 10:15:41 +01:00