0

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.

Bogdan
  • 1
  • 1
  • well, it looks like your missing dns config ... does your vpn modify your /etc/resolv.conf ? – dominix Mar 05 '22 at 20:19
  • did you try to install a dns resolver (unbound, powerdns-recursor, bind ) ? – dominix Mar 05 '22 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? – Bogdan Mar 06 '22 at 06:34

1 Answers1

0

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

Bogdan
  • 1
  • 1