I have set up an OpenVPN server, as well as a DNS server on the private network to resolve private DNS addresses.
On the OpenVPN server, I have set the private DNS address in the client DNS config. I have three clients, running Android, Ubuntu and Raspbian, respectively.
The Android and Ubuntu clients seem to use the private server; at least I can resolve private names. This does not work on the Raspbian client, though: private addresses cannot be resolved, and nslookup
returns a response coming from a DNS server on the client LAN, not the remote end of the VPN.
When I run nslookup in interactive mode and set the server explicitly, queries are resolved, which tells me DNS queries can pass through the VPN without being blocked. The issue seems to be that the client is querying the wrong DNS server.
Here is the config of the Raspbian client:
clientremote 'vpn.example.org'ca 'ca.pem'cert 'cert.pem'key 'key.pem'cipher AES-128-CBCdev tunproto udpverify-x509-name 'vpn.example.org'tls-auth 'hmackey.pem' 1auth SHA256nobindauth-nocachescript-security 2persist-keypersist-tun
The other two clients were configured using GUI tools, thus I cannot provide reliable config files (they offer exp
Do I need to set anything on the client side to get the client to use the DNS servers on the VPN?