I'm pretty sure it's not possible to do that from a windows perspective,
however the workaround that I've used (that has some advantages of its own)
is to run the bind dns server locally on my windows client machine,
configured as a resolver for localhost only, and configured with forward
zones for specific domains.  It ends up working fairly well.

-Joe

On Tue, Jan 20, 2015 at 5:56 AM, Frank, Petric (Petric) <
petric.fr...@alcatel-lucent.com> wrote:

> Hello,
>
> this is not exactly a OpenVPN problem.
>
> I connect via VPN to a network (own subnet). There is a DNS server serving
> hosts of some (specific) domains in this subnet.
>
> Problem is how to keep the locally configured DNS, but tell the system to
> ask the DNS behind the VPN tunnel when it requests hosts from the (known)
> domains of this DNS server.
>
> For example:
>   Lookup of google.com -> ask preconfigured DNS
>   Lookup of *.local.dom -> ask DNS behind VPN tunnel (local.dom is managed
> by him)
>
> As far as I know I can only replace the configured DNS server by adding
> the line
>   push "dhcp-option DNS a.b.c.d"
>
> but I would like to have something like
>   push "dhcp-option DNS local.dom a.b.c.d"
> telling that all lookups of local.dom should be directed to a.b.c.d.
>
> I don't know whether this is possible as such.
>
> Local host is Windows 7
> VPN server is Linux
>
> Regards
>   Petric
>
>
>
> ------------------------------------------------------------------------------
> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
> GigeNET is offering a free month of service with a new server in Ashburn.
> Choose from 2 high performing configs, both with 100TB of bandwidth.
> Higher redundancy.Lower latency.Increased capacity.Completely compliant.
> http://p.sf.net/sfu/gigenet
> _______________________________________________
> Openvpn-users mailing list
> Openvpn-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openvpn-users
>
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to