Comment 4 for bug 651007

Revision history for this message
周成瑞 (e93b5ae3) wrote : Re: Does not correctly write resolv.conf

@Mathieu,

"Use this connection only for the resources on its network" checkbox is unchecked

I use VPN to bypass the Great Firewall of China by routing Internet traffic through the VPN. The two original DNS is provided by my ISP, they poisoned youtube, facebook and twitter (at least these three) DNS records. I have to use the pushed DNS and remove the old ones.

If I use the openvpn command line client with the same client config file, My resolv.conf after VPN connection is:

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 4.2.2.1
nameserver 4.2.2.2
nameserver 4.2.2.3

This is handled by /etc/openvpn/update-resolv-conf shell script distributed in the openvpn-client package. It seems it handles only 3 of 4 pushed DNS server, but it correctly replaced my DNS as configured and desired.