________________________________________
From: Gert Doering <g...@greenie.muc.de>
Sent: Thursday, November 24, 2016 3:21 PM
To: jack seth
Cc: openvpn-users@lists.sourceforge.net
Subject: Re: [Openvpn-users] Persist-tun+resolv-retry+redirect-gateway = problem

Hi,

On Thu, Nov 24, 2016 at 04:47:22PM +0000, jack seth wrote:
> I think this is a problem for servers using DDNS.  If the tunnel goes down 
> the client will try to first resolve the server's hostname but the all 
> traffic (specifically DNS) is still routed to the tunnel which is down. :)  
> So you can never reconnect.  Is there a way to specify that the openvpn 
> server address uses a specific DNS server while all other traffic gets sent 
> to the VPN?

--redirect-gateway def1 bypass-dns

(this only works on windows, because our code does not know how to query the
currently-active DNS servers on other platforms)

gert
--
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             g...@greenie.muc.de
fax: +49-89-35655025                        g...@net.informatik.tu-muenchen.de

Thanks but won't this make all DNS requests go outside the VPN?  What about 
this?
dhcp-option DNS 192.168.25.1
dhcp-option DNS 8.8.8.8

Would this use the VPN (i.e. 192.168.25.1) but if it failed would it use 
8.8.8.8?

------------------------------------------------------------------------------
_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to