Page 1 of 1

Issue with manually specifying DNS in client config (dhcp-option DNS)

Posted: Wed Jan 13, 2021 4:46 am
by gyrex
Hi everyone,

I'm hoping someone might be able to help. I have an ASUS router which uses openVPN and spits out a config file to load into my OpenVPN client.

The issue is that when I connect with my OpenVPN client in MacOS or Windows, the client uses the ISP's DNS server rather than the DNS server running on the router (10.11.12.1). This means that I can't easily find local clients using their server name.

I've tried modifying the client config file and specifying the DNS server but the client ignores this (confirmed with nslookup). If I use the Tunnelblick client everything works fine.

This is my config file:

Code: Select all

remote router.domain.com.au 1194
float
nobind
proto udp
pull-filter ignore "dhcp-option DNS"
pull-filter ignore "dhcp-option DNS6"
dhcp-option DNS 10.11.12.1
dhcp-option DOMAIN domain.local
dev tun
sndbuf 0
rcvbuf 0
keepalive 15 60
comp-lzo adaptive
auth-user-pass
client
auth SHA1
remote-cert-tls server
Can anyone help please?

Re: Issue with manually specifying DNS in client config (dhcp-option DNS)

Posted: Wed Jan 13, 2021 7:02 am
by TinCanTech
Tunnelblick has a a good log .. you should start there.

Re: Issue with manually specifying DNS in client config (dhcp-option DNS)

Posted: Thu Jan 14, 2021 12:51 am
by gyrex
TinCanTech wrote:
Wed Jan 13, 2021 7:02 am
Tunnelblick has a a good log .. you should start there.
Thanks for your response. Tunnelblick works perfectly so I'm not sure what the log will reveal but I'll have a look anyway.

I'm trying to understand why the OpenVPN client seems to ignore the DNS server entries.

Re: Issue with manually specifying DNS in client config (dhcp-option DNS)

Posted: Sat Aug 06, 2022 5:38 pm
by gyrex
There appears to be quite a few other people in the forums who are running the OpenVPN Connect app on MacOS who are suffering the same issue with the client not registering the client file's DNS servers. This appears to be a bug with the app.