mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 23:30:28 +01:00
dns: update caching plugins on configuration change signal
A HUP or USR1 signal forces the rewrite of DNS configuration, however caching plugins are ignored when using dns=dnsmasq and so the real servers are written to resolv.conf: $ cat /etc/resolv.conf nameserver 127.0.0.1 # killall -USR1 NetworkManager $ cat /etc/resolv.conf nameserver 192.168.1.1 Set @no_caching to FALSE when calling update_dns() after a signal to take caching plugins into account.
This commit is contained in:
parent
53dfaddda2
commit
b88ce6d044
1 changed files with 1 additions and 1 deletions
|
|
@ -1510,7 +1510,7 @@ config_changed_cb (NMConfig *config,
|
|||
NM_CONFIG_CHANGE_DNS_MODE |
|
||||
NM_CONFIG_CHANGE_RC_MANAGER |
|
||||
NM_CONFIG_CHANGE_GLOBAL_DNS_CONFIG)) {
|
||||
if (!update_dns (self, TRUE, &error)) {
|
||||
if (!update_dns (self, FALSE, &error)) {
|
||||
_LOGW ("could not commit DNS changes: %s", error->message);
|
||||
g_clear_error (&error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue