Page 1 of 1

Script for distributing dns requests

Posted: Mon Sep 27, 2021 12:48 pm
by coca22COCA
Hi everyone,

I am trying to filter which dns request goes to the dns server over the vpn and which dns request goes to the internet and I wondered if it is somehow possible with OpenVPN.
All the domains which should go over the vpn have a specific naming convention and could be determined via regex.

Thanks in advance.

Re: Script for distributing dns requests

Posted: Sat Dec 25, 2021 1:39 pm
by tunnel_boar
Not sure what you mean. You're either using the DNS provided by your VPN carrier or one of your choosing. If you see two separate DNS requests you have a leak.
u
Are you using the update resolve script with --up in your config?
And if so, have you installed resolvconf to update your /etc/resolved.conf?