On 2023-05-08 16:03, Per Jessen wrote:
Carlos E. R. wrote:
dnsmasq module writes into /run/dnsmasq-forwarders.conf. It is even documented in "man 8 netconfig" ... but of course real men do not read those manuals.
I did not know I had to read that man page in particular.
And no, the information is not there:
cer@Telcontar:~> cat /run/dnsmasq-forwarders.conf ### /run/dnsmasq-forwarders.conf: global dns forwarders ### for use as dnsmasq --resolv-file, autogenerated by netconfig! [snip] # nameserver 192.168.1.16
That is something to investigate - for comparison:
office68:~ # cat /run/dnsmasq-forwarders.conf ### /run/dnsmasq-forwarders.conf: global dns forwarders [snip] # nameserver 192.168.2.254 nameserver 2001:db8:4c68:1::1000
In the summary of the previous thread on dnsmasq, I wrote that these settings were needed: NETCONFIG_DNS_POLICY="STATIC" NETCONFIG_DNS_FORWARDER="dnsmasq" NETCONFIG_DNS_FORWARDER_FALLBACK="yes" NETCONFIG_DNS_STATIC_SEARCHLIST="your_domain" NETCONFIG_DNS_STATIC_SERVERS="127.0.0.1" https://lists.opensuse.org/archives/list/users@lists.opensuse.org/message/GN... In Telcontar I have: Telcontar:~ # grep "NETCONFIG_DNS_STATIC_SEARCHLIST\|NETCONFIG_DNS_STATIC_SERVERS\|NETCONFIG_DNS_FORWARDER\|NETCONFIG_DNS_POLICY" /etc/sysconfig/network/config | egrep -v "^[[:space:]]*$|^#" NETCONFIG_DNS_POLICY='STATIC' NETCONFIG_DNS_FORWARDER='dnsmasq' NETCONFIG_DNS_STATIC_SEARCHLIST='valinor' NETCONFIG_DNS_STATIC_SERVERS='127.0.0.1 192.168.1.16' NETCONFIG_DNS_FORWARDER_FALLBACK="yes" Telcontar:~ # So that part is correct. My summary also says to put in /etc/dnsmasq.conf this: resolv-file=/run/NetworkManager/no-stub-resolv.conf But this machine is using wicked. Notice that /run/netconfig/resolv.conf and /run/NetworkManager/no-stub-resolv.conf are similar files but not the same. The former would take its values from /etc/sysconfig/network/config and be static (because NETCONFIG_DNS_POLICY='STATIC'), for use by other software and telling them to ask the local dnsmasq server, while the later contains the remote dns servers and be dynamic. With wicked, the remote DNS information is in /run/wicked/leaseinfo.eth0.auto.ipv6 and leaseinfo.eth0.static.ipv4, but not in a form that can be included in dnsmasq.conf, I think: Telcontar:~ # cat /run/wicked/leaseinfo.eth0.auto.ipv6 INTERFACE='eth0' TYPE='auto' FAMILY='ipv6' UUID='b5c83...' IPADDR='2a02:.../64' PREFIXLEN='64' IPADDR_1='fd81:.../64' PREFIXLEN_1='64' DNSSERVERS='2a02:9000::aaaa 2a02:9000::bbbb' I hope this clarifies what information can be found where. That file is constantly being written! Telcontar:~ # l /run/wicked/leaseinfo.eth0.auto.ipv6 -rw-r--r-- 1 root root 262 May 8 20:03 /run/wicked/leaseinfo.eth0.auto.ipv6 Telcontar:~ # l /run/wicked/leaseinfo.eth0.auto.ipv6 -rw-r--r-- 1 root root 262 May 8 20:04 /run/wicked/leaseinfo.eth0.auto.ipv6 Telcontar:~ # This is the cause of the current problem that started this thread. It happens also on the miniserver: Isengard:~ # l /run/wicked/leaseinfo.eth0.auto.ipv6 -rw-r--r-- 1 root root 264 May 8 20:06 /run/wicked/leaseinfo.eth0.auto.ipv6 Isengard:~ # l /run/wicked/leaseinfo.eth0.auto.ipv6 -rw-r--r-- 1 root root 264 May 8 20:07 /run/wicked/leaseinfo.eth0.auto.ipv6 Isengard:~ # But not this file: Isengard:~ # l /etc/resolv.conf lrwxrwxrwx 1 root root 30 Mar 5 23:22 /etc/resolv.conf -> /var/run/netconfig/resolv.conf Isengard:~ # Isengard:~ # l /var/run/netconfig/resolv.conf -rw-r--r-- 1 root root 622 May 8 12:54 /var/run/netconfig/resolv.conf Isengard:~ # same in Telcontar: Telcontar:~ # l /etc/resolv.conf /var/run/netconfig/resolv.conf lrwxrwxrwx 1 root root 30 Nov 29 20:24 /etc/resolv.conf -> /var/run/netconfig/resolv.conf -rw-r--r-- 1 root root 661 May 8 12:26 /var/run/netconfig/resolv.conf Telcontar:~ # This is because now on both machines the contents are static (because NETCONFIG_DNS_POLICY='STATIC'). nameserver 127.0.0.1 Now, why is /run/wicked/leaseinfo.eth0.auto.ipv6 being written every minute, I have no idea. Maybe my router is the culprit again. No idea now how to find out.
So it certainly works. (office68 uses NetworkManager). I'm just now trying the same thing on tw+wicked.
cer@Telcontar:~>
The telefónica DNS servers are missing.
It should have:
192.168.1.1 or 80.58.61.250, server=80.58.61.254 and 2a02:9000::aaaa, 2a02:9000::bbbb
Yup. I would also expect to see those four listed.
Maybe it is just a difference between wicked and NM.
Another machine (Beta) that runs NM, has the correct information:
cer@Beta:~> cat /run/NetworkManager/no-stub-resolv.conf
What about /run/dnsmasq-forwarders.conf ?
The Beta machine doesn't have dnsmasq. -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)