F5F Stay Refreshed Power Users Networks Configure OpenVPN to use a custom DNS server.

Configure OpenVPN to use a custom DNS server.

Configure OpenVPN to use a custom DNS server.

X
220
10-18-2023, 01:22 AM
#1
You can adjust the DNS settings in your openVPN configuration file. Look for a file like `openvpn.conf` or similar, and edit the relevant DNS entries there. Updating the server's DNS should be reflected when you modify the client configuration locally.
X
xXStrikeBackXx
10-18-2023, 01:22 AM #1

You can adjust the DNS settings in your openVPN configuration file. Look for a file like `openvpn.conf` or similar, and edit the relevant DNS entries there. Updating the server's DNS should be reflected when you modify the client configuration locally.

E
EDGE2930
Junior Member
15
10-19-2023, 03:13 AM
#2
I understand you need to modify which DNS servers clients connect to. Add the line "dhcp-option DNS 1.1.1.1" (or another IP) to your /etc/openvpn/server.conf file. This assumes your server setup uses a configuration named server.conf, which is common in most guides. You can also adjust the DNS settings in /etc/network/interfaces under the relevant interface if you prefer.
E
EDGE2930
10-19-2023, 03:13 AM #2

I understand you need to modify which DNS servers clients connect to. Add the line "dhcp-option DNS 1.1.1.1" (or another IP) to your /etc/openvpn/server.conf file. This assumes your server setup uses a configuration named server.conf, which is common in most guides. You can also adjust the DNS settings in /etc/network/interfaces under the relevant interface if you prefer.