I
I
interprise2018-03-13 19:02:17
Domain Name System
interprise, 2018-03-13 19:02:17

How to use DNS (8.8.8.8) over openvpn?

OS ubuntu 17, more precisely a docker container based on this OS. Though within the limits of this task it is not important
Question such. after establishing a vpn connection, I want to set the current DNS server to 8.8.8.8, regardless of the server settings, so that requests to the server go through the vpn server.
It is possible to execute any scripts, edit any configs.
Thanks for answers!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2018-03-13
@ky0

In the server config:

push "dhcp-option DNS 8.8.8.8"
push "route 8.8.8.8 255.255.255.255"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question