Bug #23035
open“DNS Settings” built-in technique doesn't work with systemd-resolved (notably Ubuntu 22.04 LTS)
Description
The “DNS Settings” built-in technique doesn't work for distros using systemd-resolved, which means a number of recent distros including Ubuntu 22.04 LTS.
root@lab_test_2_zgent7:/etc# lsb_release -d
Description: Ubuntu 22.04.2 LTS
When using systemd-resolved, resolv.conf is a symlink to a tmpfs file :
root@lab_test_2_zgent7:/etc# ll resolv.conf
lrwxrwxrwx 1 root root 39 Jun 16 02:07 resolv.conf -> ../run/systemd/resolve/stub-resolv.conf
This makes a directive based upon the “DNS Settings” built-in technique to fail.
With systemd-resolved, the DNS settings are supposed to be in
- /etc/systemd/resolved.conf
- /etc/systemd/resolved.conf.d/dns_servers.conf
etc.
It is also quite probable that the “DNS Settings” built-in technique wouldn't work properly along with other common DNS helper programs such as dsnmasq or resolvconf, that either manipulate the resolv.conf file or symlink it to virtual/temporary files under their own control.
The resolv.conf file is also frequently edited / modified by NetworkManager, common on RedHat like distros and default on many others.
Updated by Vincent MEMBRÉ over 1 year ago
- Target version changed from 7.3.4 to 7.3.5
Updated by Alexis Mousset over 1 year ago
- Target version changed from 7.3.5 to 7.3.6
Updated by Vincent MEMBRÉ over 1 year ago
- Target version changed from 7.3.6 to 7.3.7
Updated by Vincent MEMBRÉ over 1 year ago
- Target version changed from 7.3.7 to 7.3.8
Updated by Vincent MEMBRÉ about 1 year ago
- Target version changed from 7.3.8 to 7.3.9
Updated by Vincent MEMBRÉ about 1 year ago
- Target version changed from 7.3.9 to 7.3.10
Updated by Vincent MEMBRÉ about 1 year ago
- Target version changed from 7.3.10 to 7.3.11
Updated by Vincent MEMBRÉ 11 months ago
- Target version changed from 7.3.11 to 7.3.12
Updated by Vincent MEMBRÉ 10 months ago
- Target version changed from 7.3.12 to 7.3.13
Updated by Vincent MEMBRÉ 10 months ago
- Target version changed from 7.3.13 to 7.3.14
Updated by Vincent MEMBRÉ 8 months ago
- Target version changed from 7.3.14 to 7.3.15
Updated by Vincent MEMBRÉ 7 months ago
- Target version changed from 7.3.15 to 7.3.16
Updated by Vincent MEMBRÉ 6 months ago
- Target version changed from 7.3.16 to 7.3.17