OpenVPN Client Ignores DNS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openvpn (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: openvpn
The openvpn client does not correctly update /etc/resolv.conf with DNS data provided by the openvpn server.
The log shows the client is receiving control messages containing valid DNS.
e.g. Fri Dec 17 16:17:35 2010 PUSH: Received control message: 'PUSH_REPLY,route 10.123.10.0 255.255.
However, I'm unable to resolve any VPN-specific domains until I manually add the DNS and DOMAIN values to my /etc/resolv.conf. Even then, the mechanism that normally maintains this file appears to periodically revert the file to the original values.
I've tried installing both Network-Manager xor Wicd network managers, as well as resolvconf, but I'm still required to manually edit /etc/resolv.conf in order to use my VPN.
Openvpn, or some proxy program for openvpn, should update /etc/resolv.conf with the DNS and DOMAIN received through control messages. e.g.
domain mydomain.com
search mydomain.com
nameserver 10.123.10.12
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: openvpn 2.1.0-1ubuntu1.1
Uname: Linux 2.6.32-
NonfreeKernelMo
Architecture: amd64
Date: Fri Dec 17 16:15:17 2010
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: openvpn
This is what /etc/openvpn/ update- resolv- conf should do. This is not done automatically, you have to enable it in your openvpn config.
Do you have the following in your openvpn configuration:
up /etc/openvpn/ update- resolv- conf update- resolv- conf
down /etc/openvpn/
?