TinCanTech wrote
Then either one of:
- Your ping was done incorrectly and passed when it should fail
- DNS server firewall
- DNS server is incorrectly configured
- The details in your initial post are incorrect
1) ping was done incorrectly
Both pings are made on a command window on a Windows computer connected by VPN. They return good ping results:
>ping 10.0.0.7
Pinging 10.0.0.7 with 32 bytes of data:
Reply from 10.0.0.7: bytes=32 time=137ms TTL=127
Reply from 10.0.0.7: bytes=32 time=137ms TTL=127
Reply from 10.0.0.7: bytes=32 time=137ms TTL=127
Reply from 10.0.0.7: bytes=32 time=137ms TTL=127
Same response for 10.0.0.3
2) DNS server firewall?
I have no idea why there would be a firewall for DNS. But any computer connected to the office LAN works fine whereas if it is moved away and connects via VPN it does not get local name resolution.
3) DNS server is incorrectly configured
Can't say anything about that because the domain servers are maintained by an IT professional company...
4) details in your initial post are incorrect
Incorrect in what way?
I have looked at the OpenVPN server (an Ubuntu 16.04.5 LTS server machine) via VPN. It sits on the same internal network.
The /etc/resolv.conf file (autogenerated) contains this:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 10.0.0.3
nameserver 10.0.0.7
nameserver 8.8.8.8
So this server is using the two local DNS servers and I expect the other computers connected to the network do too. All use DHCP.
And these are the ones I pushed in the server.conf file shown above, but it looks like it does not work.
Maybe DNS calls cannot really be tunneled???
Note that we used to run Microsoft RRAS and PPTP VPN before we retired the old server hosting that VPN.
At that time we did not have these problems, they only appeared when we switched to OpenVPN.
PPTP clients got IP addresses for the tunnel within the address range of the local network, but with OpenVPN the tunnel is in a different network range.
Maybe this is the issue?
Is there something specific to do in Ubuntu (i.e with IPTABLES) to make DNS calls pass through the OVPN tunnel?