mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
names, network: Re-feed DNS known to network-manager to resolved
- This avoids using fallback DNS servers in systemd-resolved soon after systemd-resolved takes over /etc/resolv.conf and if network-manager knows some DNS servers from the connections it has established. - Version for the names app has already been incremented in this patch series. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
1 parent
0817e7af45
commit
28886b56cf
2 files changed
+15
-1
No files matched your search
@@ -622,3 +622,8 @@ def wifi_scan():
|
||||
})
|
||||
|
||||
return access_points
|
||||
|
||||
|
||||
def refeed_dns():
|
||||
"""Re-feed DNS servers to systemd-resolved."""
|
||||
get_nm_client().reload(nm.ManagerReloadFlags.DNS_RC)
|
||||
Reference in new issue
Block a user