ServerMonkey
My problem appears to be that...
OpenVPN Access Server not Pushing DNS Servers to clients
I have a Dual View BIND setup on the same server which has Internal and External Zones. It's also configured as 4 name servers (Probably horrible practice... but it works with low resources and 1 server)
NS1.domain1.com (Public)
NS2.domain1.com (Public)
NS3.domain1.com (Private)
NS4.domain1.com (Private)
So when I ping domain1.com on a workstation, it returns a public IP address... when I use root@server and ping, it returns a 10.x block IP.
When I connect OpenVPN Client to the OpenVPN Access Server, I can ping the 10.x block no problems. But in
OpenVPN Access Server Admin -> VPN Settings -> DNS Settings -> Have clients use these DNS servers.
and set Primary and Secondary to my 10.x DNS IP's... once connected it only returns the public query.
I also tried not allowing it to route internet traffic, didn't make a difference.
And within BIND, I made sure the match-clients directive, works with the IP Block of OpenVPN... because I tested the setup by editing my linux workstation's resolv.conf and manually setting only the 10.x DNS Servers, and it returned internal 10.x IP's on domain1.com ping requests while connected to the OpenVPN Server with my Client. So that's seems like a good sign that it's something, perhaps, very small?
Does anyone have any idea what I can do to make this work?
Thanks in advanced! 😃
ServerMonkey
SOLVED:
I used my Public NS.domain1.com as Primary DNS Server (DNS Settings) and Private NS.domain1.com as Secondary DNS Server (DNS Settings)
then I matched my resolv.conf to my server which is
ns1 = ns1.domain1.com (public)
ns3 = ns3.domain1.com (private)
ns1 = ns1.publicuncensoredDNS service (public)
now all works perfectly when connecting to VPN. 🙂