Hi,
When VPN connection comes into action initial address and DNS settings are substituted by new ones which belong to virtual private network a system is connected to.
Ergo, the first question is whether VPN DNS server allows resolution of Internet addresses like google. By the way, the most probable answer is 'no'...
Yes everything is allowed ( i work as network admin) .. work fine when i use same .pcf file on network manager in shrew soft and similar..
It has works fine on fedora...
DNS service wont to rewrite itself when it connected by new interface (tun0 form vpn? )
can ping ip address when i was connected to vpn but i cannot resolve anything..
I have read on forums on DNS problem in 18.04 with open vpn and use dnsmasq to resolve a problem ... in my case i use a cisco vpnc , thru network manager, no example for that..
You can verify how dns server works (with and without vpn in effect) using nslookup like that:
# start command
nslookup
# see what is default dns server
> server
Default server: 8.8.8.8
Address: 8.8.8.8#53
Default server: 8.8.4.4
Address: 8.8.4.4#53
# verify dns resolution with default server
> google.com
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: google.com
Address: 216.58.215.78
Name: google.com
Address: 2a00:1450:401b:806::200e
# change dns server to an alternative
> server 8.8.4.4
Default server: 8.8.4.4
Address: 8.8.4.4#53
# verify alternative dns server resolution
> google.com
Server: 8.8.4.4
Address: 8.8.4.4#53
Non-authoritative answer:
Name: google.com
Address: 216.58.209.14
Name: google.com
Address: 2a00:1450:401b:806::200e
>
By the way, I always switch dnsmasq off in ubuntu. And they say, that switching off dnsmasq may have (unreported) effect on vpn connections. Never had a problem with that myself, though.
Im setup a connection thru VPN from command line.. vpnc (cisco vpn) must run as sudo, then DNS resolving works fine.. i guess that network manager gui does not apply all privileges in settings as must.