When I amend /etc/dhcp/dhclient.conf
by uncommenting the following line
#prepend domain-name-servers 127.0.0.1;
and change to
prepend domain-name-servers 208.67.222.222,208.67.220.220;
Then when I run network manager
sudo service network-manager restart
I get a this message but the network is still connected
"Disconnected
The network connection has been disconnected."
The file remains unchanged /etc/resolv.conf.
/etc/resolv.conf
# Generated by NetworkManager
search Home
nameserver 10.0.2.3
my workaround at the moment is to run a script updated /etc/resolv.conf
updating it manually
#!/bin/bash
sudo sed -i '3s;^;nameserver 208.67.222.222\nnameserver 208.67.220.220\n;' /etc/resolv.conf
then my objective to fix DNS Leak works.
I believe failure of network manager to update /etc/resolve.conf is due to
the fact the linux OS is running inside a VirtualBox.
Is there a fix for it ?
/etc/resolv.conf not updating by Network Manager
-
- Posts: 10
- Joined: 10. May 2020, 00:52
/etc/resolv.conf not updating by Network Manager
- Attachments
-
- VBox.log
- (98.61 KiB) Downloaded 15 times
-
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Windows, Linux
Re: /etc/resolv.conf not updating by Network Manager
As I read the log, your guest is attached via NAT. So it is acting as if there is a router between your guest and the host's LAN. See Virtualbox Networks: In Pictures: NAT.
Browse the Virtualbox manual for mention of NAT. There are some vboxmanage commands relating to NAT that might help. I don't know specifically if these commands will help you though.
Browse the Virtualbox manual for mention of NAT. There are some vboxmanage commands relating to NAT that might help. I don't know specifically if these commands will help you though.