PINE64
Unable to change how resolv.conf is generated - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: Linux on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=114)
+--- Thread: Unable to change how resolv.conf is generated (/showthread.php?tid=8373)



Unable to change how resolv.conf is generated - 91LudeSiT - 11-18-2019

For some aggrevating reason something keeps changing my resolv.conf, even though I've specified dhcp address only in network manager and set dns servers.

Resolv always gets set to:

Code:
# /etc/resolv.conf.head can replace this line
nameserver 66.78.244.253
nameserver 207.190.35.254
# /etc/resolv.conf.tail can replace this line

Any idea what service keeps changing this?


RE: Unable to change how resolv.conf is generated - 91LudeSiT - 11-18-2019

I solved my problem for the time being by adding routes to my VPN so those DNS servers could be accessed while VPN was accessed. It is kind of annoying I can't manually over ride the DNS servers in networkmanager so that I can prevent dns leaks while VPN'd on a public wifi...


RE: Unable to change how resolv.conf is generated - Arwen - 11-19-2019

I see what you mean.

For my home network, I used manual IPv4 settings in Network Manager, for both IP & DNS. When I checked just now, the IP was fine, but DNS was something else.


Unable to change how resolv.conf is generated - 91LudeSiT - 11-19-2019

Yeah, it claims dhcpd is updating it, but I also set dns in my dhcpd.conf and that didn't fix the issue. I'd like to get to the bottom of this as it was breaking my vpn all day.

Sent from my Pixel 3 using Tapatalk


RE: Unable to change how resolv.conf is generated - Arglebargle - 11-19-2019

(11-18-2019, 03:31 PM)91LudeSiT Wrote: For some aggrevating reason something keeps changing my resolv.conf, even though I've specified dhcp address only in network manager and set dns servers.

Resolv always gets set to:

Code:
# /etc/resolv.conf.head can replace this line
nameserver 66.78.244.253
nameserver 207.190.35.254
# /etc/resolv.conf.tail can replace this line

Any idea what service keeps changing this?

I'm not sure how this is handled by debian at the moment but if you're running ubuntu it's almost certainly systemd mucking about. Post suspend and at boot 'resolvconf-pull-resolved.service' fails to restart/start properly on my install, that may be related.


RE: Unable to change how resolv.conf is generated - hmuller - 11-20-2019

(11-18-2019, 03:31 PM)91LudeSiT Wrote: Any idea what service keeps changing this?

This reading material may shed some light on that question:

https://www.tecmint.com/set-permanent-dns-nameservers-in-ubuntu-debian/