[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Openvpn, network manager and resolv.conf



On Mon, Jun 17, 2013 at 05:42:19PM -0700, Erwan David wrote:
> Le 17/06/2013 09:25, Sean Alexandre a écrit :
> >It sounds like you may not have the resolvconf package installed.
> 
> I have...
> 
> And I see in my resolv.conf
> 
> # 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 8.8.8.8
> search key.chillispot.info
> 
> And in /var/log/daemon.log
> 
> Jun 17 17:35:27 bibi ovpn-dedibox[4076]: PUSH: Received control
> message: 'PUSH_REPLY,ifconfig-ipv6 2a01:e0b:2070:1::1001/64
> 2a01:e0b:2070:1::1,tun-ipv6,route-ipv6 2000::/3
> 2a01:0e0b:2070:1::1,redirect-gateway def1 bypass-dhcp,dhcp-option
> DNS 10.8.0.1,dhcp-option DOMAIN rail.eu.org,tun-ipv6,route
> 10.8.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.10
> 10.8.0.9'
> 
> which shows that the openvpn server pushed the DNS

Your openvpn config file may be missing these two lines:

up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf

You should be seeing a log file entry like this, that shows resolv.conf has been updated:

Sun June 16 08:18:10 2013 us=8295 /etc/openvpn/update-resolv-conf tun0 1500 1562 10.0.122.114 10.0.122.113 init


Reply to: