I want to decide myself which name servers I use for surfing and not be controlled by what I get from dhcp or openvpn scripts.
I have tried all kinds of solutions to this problem but none has worked so far.
Like:
# chattr +i /etc/resolv.conf
# vi /etc/NetworkManager/networkManager.conf
dns=none
# service NetworkManager restart
# vi /etc/dhcp/dhclient.conf
supersede domain-name-servers 8.8.8.8,8.8.4.4
But I always end up with resolv.conf containing only:
nameserver 127.0.0.53
That way I have no idea which nameservers are actually used. And it doesn't work with openvpn.
It would be ok, in a way to use masq, but I want to control which name servers masq uses, or take care of resolv.conf manually.
Any idea how I should do this?
Grateful for any sugggestions (except the ones I've already tried)...
I have tried all kinds of solutions to this problem but none has worked so far.
Like:
# chattr +i /etc/resolv.conf
# vi /etc/NetworkManager/networkManager.conf
dns=none
# service NetworkManager restart
# vi /etc/dhcp/dhclient.conf
supersede domain-name-servers 8.8.8.8,8.8.4.4
But I always end up with resolv.conf containing only:
nameserver 127.0.0.53
That way I have no idea which nameservers are actually used. And it doesn't work with openvpn.
It would be ok, in a way to use masq, but I want to control which name servers masq uses, or take care of resolv.conf manually.
Any idea how I should do this?
Grateful for any sugggestions (except the ones I've already tried)...
Comment