You are not logged in.
Hey everyone, So I use my laptop as both my work and personal usage. (probably a bad idea, but that's a topic for a different thread )
Anyway, I shift back and forth between my home network (a 192.168.1.x) and my company's network. (135.x.x.x)
I notice that my /etc/resolv.conf file isn't always updated to accurately list what DNS server I'm using. This becomes abundantly clear when I'm at home, but using a VPN to connect using my company's network, then kill the VPN connection. The /etc/resolv.conf is never updated to reflect the change.
Currently my /etc/resolv.conf stipulates that the libc resolver does not support more than 3 entries in /etc/resolv.conf. And of course my company supplies many DNS servers, so the first 3 nameserver entries are usually from my company and the 4th entry is my home DNS address. So to make a long question short... is there any way to force NetworkManager to read the entire /etc/resolv.conf, and not give up on the 3rd try?
OR the more preferred way, is there a way to make my own entry of 192.168.1.1, permanent at the top of the list, and have the rest underneath it, be filled out dynamically?
"I have not failed, I have found 10,000 ways that will not work" -Edison
Offline
Hey everyone, So I use my laptop as both my work and personal usage. (probably a bad idea, but that's a topic for a different thread
)
Anyway, I shift back and forth between my home network (a 192.168.1.x) and my company's network. (135.x.x.x)
I notice that my /etc/resolv.conf file isn't always updated to accurately list what DNS server I'm using. This becomes abundantly clear when I'm at home, but using a VPN to connect using my company's network, then kill the VPN connection. The /etc/resolv.conf is never updated to reflect the change.Currently my /etc/resolv.conf stipulates that the libc resolver does not support more than 3 entries in /etc/resolv.conf. And of course my company supplies many DNS servers, so the first 3 nameserver entries are usually from my company and the 4th entry is my home DNS address. So to make a long question short... is there any way to force NetworkManager to read the entire /etc/resolv.conf, and not give up on the 3rd try?
OR the more preferred way, is there a way to make my own entry of 192.168.1.1, permanent at the top of the list, and have the rest underneath it, be filled out dynamically?
resolv.conf is read by the libc resolver, not nm. Run a DNS server/proxy/cache like unbound (which I am using; easier to configure IMO) or dnsmasq locally. In the DNS server, configure any number of DNS sources you like in the DNS server, then just add 127.0.0.1 as the top-level nameserver to resolv.conf, or rather resolv.conf.d/head or whatever location in order to prevent the file from being overwritten by e.g. DHCP clients and the like.
Offline