N
N
nosazus2017-05-27 02:15:20
linux
nosazus, 2017-05-27 02:15:20

Why is there a problem with DNS after connecting via VPN?

Can't connect via OpenVPN, DNS error occurs
This site can't be reached
whoer.net's server DNS address could not be found.
Try:
Checking the proxy, firewall, and DNS configuration
DNS_PROBE_FINISHED_BAD_CONFIG
How to fix this? Ubuntu 16.04, VPS on Amazon, also Ubuntu.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dummyman, 2017-05-27
@nosazus

You probably forgot to add something to the config, it is always possible to set dns individually locally.

sudo echo "nameserver 8.8.8.8" > /etc/resolvconf/resolv.conf.d/base
sudo echo "nameserver 8.8.4.4" > /etc/resolvconf/resolv.conf.d/head

Reboot
Look
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 8.8.4.4
nameserver 127.0.1.1

Like it. If the error repeats, then you can add vlob
Is there an option to put dnsmasq
sudo echo "server=8.8.8.8" >> /etc/dnsmasq.conf
sudo echo "server=8.8.4.4" >> /etc/dnsmasq.conf

By analogy, reboot and use.
And here there is a small article that would help to avoid all this https://habrahabr.ru/post/318694/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question