I'm using Ubuntu 12.04 LTS. I use a VPN for work. In network manager, for both my normal wired connection, and for the VPN connection also, I have it configured to "Automatic (VPN) addresses only" and I specify the nameservers I want to use. But when I view /etc/resolv.conf after connecting to the VPN, it shows different nameservers. Even after disconnecting from the VPN, it's using those nameservers that I did not specify.
The problem is this causes a large delay in browsing the web because the VPN nameservers are either really slow or maybe it's timing out.
How can I get it to stick to using the nameservers I specify?
If I edit resolv.conf and set it to the nameservers I want, the delay goes away, so I know this is the problem. But every time I use connect to the VPN, it just overwrites it again.