1

I have Ubuntu 20.04.1 LTS. I added VPN config using this instruction. VPN is correctly added. When I connect to this VPN I can open only page with address IP. For example I can ping address 8.8.8.8 but I can't ping address facebook.com. I get error:

Temporary failure in name resolution

I trying resolve this by this instruction. But when I disconnected VPN and next connected to VPN, then inside file /etc/resolv.conf disappear nameserver 8.8.8.8 and I must add nameserver 8.8.8.8 again.

michal
  • 161
  • 1
  • 10
  • If this is through Windscribe, then I have the same issue. They know about the problem but not sure how to fix it. – Vasilisa Oct 22 '20 at 15:27
  • @MaybeLBDidIt they need to define nameservers in the VPN configuration to use - Google DNS nameservers to use. That'll make it work. (I've dealt with VPN providers who have to push DNS server configs to endpoints and that's the way they need to do it) – Thomas Ward Oct 22 '20 at 15:33
  • @ThomasWard They told me that the first time it broke, the site I was trying to visit was on their blacklist like wtf – Vasilisa Oct 22 '20 at 15:50
  • @Qlimax solution found here worked for me. – Felipe Volpato Sep 30 '21 at 15:05

1 Answers1

2

Ok, I resolved it added permanently nameserver 8.8.8.8 to /etc/resolv.conf.

Instruction: Set permanent DNS nameservers on Ubuntu/Debian with resolv.conf

michal
  • 161
  • 1
  • 10
  • Did you change the nameserver from 127.0.0.xx or did you add this as a new line? – Vasilisa Oct 22 '20 at 15:50
  • I add a new line – michal Oct 22 '20 at 15:55
  • 1
    Just I edit resolv.conf using this command sudo nano /etc/resolvconf/resolv.conf.d/head and added nameserver 8.8.8.8. Next I used this command: sudo resolvconf --enable-updates && sudo resolvconf -u. And when I open file resolv.conf (command:sudo nano /etc/resolv.conf) I saw addednameserver 8.8.8.8` – michal Oct 23 '20 at 13:04
  • and if /etc/resolv.conf defalt back automatically, set its attribute to immitable (though I am not so sure it didnt change again on me once when set so)

    sudo chattr +i /etc/resolv.conf

    – pierrely Nov 01 '20 at 04:56