Re: [oS-en] Problem with /etc/resolv.conf, with intention of using dnsmasq
From: "Carlos E. R." <robin.listas@telefonica.net> Date: Wed, 5 Apr 2023 04:09:10 +0200 On 2023-04-05 01:28, Bob Rogers wrote:
From: "Carlos E. R." <> Date: Wed, 5 Apr 2023 00:43:52 +0200
. . .
It says:
# Defines the DNS merge policy as documented in netconfig(8) manual page. # Set to "" to disable DNS configuration.
Then, what DNS does it write to the resolv file?
It doesn't; this is leaves resolv.conf untouched by the automatic stuff. (You were saying how it would be "far simpler" to write it yourself.)
No. The resolv file lives in ram, in a tmpfs. Something creates it on every boot. What? Never mind what. If you use this recipe to disable the "what", then you can delete the symlink to /var/run/netconfig/resolv.conf. Then make /etc/resolv.conf an ordinary file (sorry, I did forget to mention these steps), and the system will leave it alone, and it will persist between boots. -- Bob
participants (1)
-
Bob Rogers