Score:0

Curl and etc. HTTP requests not working when I connected to vpn

mx flag

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.

dominix avatar
gf flag
well, it looks like your missing dns config ... does your vpn modify your /etc/resolv.conf ?
dominix avatar
gf flag
did you try to install a dns resolver (unbound, powerdns-recursor, bind ) ?
Bogdan avatar
mx flag
@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?
Score:0
mx flag

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

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.