DNS problems with vpnc and Network Manager
If you are using vpnc to connect to VPN and using Network Manager to manage your network
Code:
sudo apt install vpnc
sudo vpnc-connect vpnserver
After succesful connection with vpnc nslookup works fine but ping not.
Code:
zajc@comp:~$ nslookup computer
Server: 127.0.1.1
Address: 127.0.1.1#53
Name: computer
Address: 172.16.1.150
Code:
zajc@comp:~$ ping computer
ping: computer: Name or service not known
The workaround is to disable the local forwarding nameserver by commenting out the line "dns=dnsmasq" in /etc/NetworkManager/NetworkManager.conf.
Code:
[main]plugins=ifupdown,keyfile,ofono
#dns=dnsmasq
[ifupdown]
managed=false
Bookmarks