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

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
gyrex
OpenVpn Newbie
Posts: 4
Joined: Wed Jan 13, 2021 4:40 am

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

Post by gyrex » Wed Jan 13, 2021 4:46 am

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?

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

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

Post by TinCanTech » Wed Jan 13, 2021 7:02 am

Tunnelblick has a a good log .. you should start there.

gyrex
OpenVpn Newbie
Posts: 4
Joined: Wed Jan 13, 2021 4:40 am

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

Post by gyrex » Thu Jan 14, 2021 12:51 am

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.

gyrex
OpenVpn Newbie
Posts: 4
Joined: Wed Jan 13, 2021 4:40 am

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

Post by gyrex » Sat Aug 06, 2022 5:38 pm

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.

Post Reply