Manual dns settings for client configuration file

Use this forum to share your VPN or network disasters. Show diagrams, traffic graphs, or whatever else you need (a video of you letting the 'smoke' out of our network gear).
Post Reply
rotocsic
OpenVpn Newbie
Posts: 2
Joined: Fri Aug 02, 2019 2:03 pm

Manual dns settings for client configuration file

Post by rotocsic » Fri Aug 02, 2019 2:09 pm

I am new in this forum an i' d like to introduce my self.
I am Patrick and working in the IT business for the last 19 years.
I am from germany and my english might not be the best ;-)

At hte moment i am looking for a way to add parameters to an open vpn client configuration file.

I want to add the following settings manually to a client configuration file:
DNS server ip adresses
DNS suffix

Does anybody know how to set these parameters at an vpn client configuration file?

Best Regards
Patrick

rotocsic
OpenVpn Newbie
Posts: 2
Joined: Fri Aug 02, 2019 2:03 pm

Re: Manual dns settings for client configuration file

Post by rotocsic » Sat Aug 03, 2019 3:44 pm

The following setting worked for me:
Add the following to the ovpn client config file:
dhcp-option DNS x.x.x.x
dhcp-option DOMAIN mydomain.domain

I changed the metrik of the openvpn networkadapter (Windows Client) to 1.
Otherwise the DNS Server from the openvpn adapter is not used while an activ ssl vpn client connection.

Perhaps helpfull for somone else :)

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 5923
Joined: Fri Jun 03, 2016 1:17 pm

Re: Manual dns settings for client configuration file

Post by TinCanTech » Sat Aug 03, 2019 5:50 pm

Look up --block-outside-dns

Also, Please see:
viewtopic.php?f=30&t=22603

SRONC-MSP
OpenVpn Newbie
Posts: 1
Joined: Thu Sep 05, 2019 10:13 pm

Re: Manual dns settings for client configuration file

Post by SRONC-MSP » Thu Sep 05, 2019 10:18 pm

I am having the same problem I think. We have a VPN server setup on a Datto D200 firewall, using OpenVPN client. I can connect to the VPN server and PING IP addresses on the local LAN on the other side of the firewall, but DNS is not working. What and where is the ovpn client config file? And how do you edit it?

TIA!

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 5923
Joined: Fri Jun 03, 2016 1:17 pm

Re: Manual dns settings for client configuration file

Post by TinCanTech » Thu Sep 05, 2019 11:08 pm

SRONC-MSP wrote:
Thu Sep 05, 2019 10:18 pm
What and where is the ovpn client config file? And how do you edit it?
:roll:

Post Reply