split dns-support

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
izhmurikov
OpenVpn Newbie
Posts: 3
Joined: Wed Dec 14, 2022 7:11 am

split dns-support

Post by izhmurikov » Thu Jan 12, 2023 11:51 am

good afternoon.I'm trying to use the functionality split-dns

i want DNS queries which matches the domain names, are announce by server to remote client move through the tunnel (to the DNS server that are defined in config) while others do not (use system dns by isp/home network)

my software is openvpn ver 2.5.8 server + openvpn3 3.3.6 client (windows)

server.conf

Code: Select all

push "dhcp-option DNS 10.76.4.153"
push "dhcp-option DOMAIN xxx.ua"
option DOMAIN push to client

Code: Select all

SENT CONTROL [USERNAME]: 'PUSH_REPLY,topology subnet,route-gateway 10.226.152.1,route 10.0.0.0 255.0.0.0,dhcp-option DNS 10.76.4.153,dhcp-option DOMAIN xxx.au,ping 5,ping-restart 30,ifconfig 10.226.152.11 255.255.248.0,peer-id 0,auth-tokenSESS_ID,cipher AES-256-GCM' (status=1)
openvpn3 client receive option

Code: Select all

NRPT::ActionCreate names=[.xxx.ua] dns_servers=[10.76.4.153]

but all dns queries to .xxx.ua ( test1.xxx.ua, test2.xxx.ua ) don't send throught vpn tunnel (i see it on wireshark) , and go to dns on system network.

I would like to know if split dns by openvpn is supported?
can i do something wrong?

thanks in advance

Post Reply