System -> Preferences -> Network Connections -> VPN tab -> Edit (my VPN
connection) -> IPv4 Settings tab. The Method is set to Automatic (VPN).
The DNS Servers and Search Domains are empty (and disabled anyway).

When I am NOT connected via VPN:
$ grep -R 192 /etc/resolvconf/
<No results found>

When I am connected via VPN:
$ grep -R 192 /etc/resolvconf/
/etc/resolvconf/run/interface/NetworkManager:nameserver 192.168.101.5
/etc/resolvconf/run/interface/NetworkManager:nameserver 192.168.101.11
/etc/resolvconf/run/resolv.conf:nameserver 192.168.101.5

================================================
I think I figured out what the difference is between my Jaunty32 (which puts my 
work DNS below my ISP DNS) and my Jaunty64 (which puts my work DNS above my ISP 
DNS).

On my Jaunty64, my /etc/resolv.conf is an actual text file.

On my Jaunty32, my /etc/resolv.conf turned out to be a symlink to
/etc/resolvconf/run/resolv.conf.

When I renamed my /etc/resolv.conf to a different name 
(/etc/resolv.conf.symlink) and rebooted, a new /etc/resolv.conf text file was 
generated. This text file has the same formatting as the resolv.conf on my 
Jaunty64:
# Generated by NetworkManager

instead of:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)

Furthermore, when I am connected via VPN, my work DNS servers are now
correctly placed above my ISP DNS, so I can both connect to my work PC
by computer name, AND surf the Internet at the same time.

================================================
To summarize my entire fix:

1. System -> Preferences -> Network Connections -> VPN tab -> Edit (my VPN 
connection) -> IPv4 Settings tab -> Routes
Make sure "Use this connection only for resources on its network" is checked.
2. Determine if resolv.conf is a symlink. If it is NOT a symlink, then the 
problem may be something else.
file /etc/resolv.conf
3. If it is a symlink to `/etc/resolvconf/run/resolv.conf', rename it to 
something else:
sudo mv /etc/resolv.conf /etc/resolv.conf.symlink
4. Reboot.
5. Test and see if you can surf the Internet and connect to your VPN PCs.
6. If test was successful, you can delete /etc/resolv.conf.symlink:
sudo rm /etc/resolv.conf.symlink

-- 
Unable to resolve VPN names AND connect to the Internet
https://bugs.launchpad.net/bugs/396387
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

-- 
universe-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/universe-bugs

Reply via email to