2

Please tell me how to solve next problem: Curl and etc. HTTP requests not working when I connected to vpn. I get a simple error - "could not resolve host". But when i disconnect from vpn everything works fine

I'm using Ubuntu 20.04 on Hetzner and Surfshark VPN.

3
  • well, it looks like your missing dns config ... does your vpn modify your /etc/resolv.conf ? Commented Mar 5, 2022 at 20:19
  • did you try to install a dns resolver (unbound, powerdns-recursor, bind ) ? Commented Mar 5, 2022 at 20:20
  • @dominix no, resolv.conf has not changed, there are only two lines: "nameserver 127.0.0.53" and "options edns0 trust-ad". Just try to install some dns resolver? Or does it need to be configured somehow? Commented Mar 6, 2022 at 6:34

1 Answer 1

2

I solved this problem by adding Google DNS IPs (8.8.8.8, 8.8.4.4) into /etc/resolv.conf

1
  • after hours.. this fixed my problems.. THANK YOU <3 Commented Jan 29, 2024 at 20:01

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.