angristan / wireguard-install

WireGuard VPN installer for Linux servers
https://stanislas.blog/2019/01/how-to-setup-vpn-server-wireguard-nat-ipv6/
MIT License
7.96k stars 1.3k forks source link

Odd DNS error #239

Closed x-FBi closed 3 years ago

x-FBi commented 3 years ago

After running the script my box loses the ability to resolve DNS. (apt doesn't resolve and I cannot ping google.com) I need to manually correct the issue. I'm a newb, so this was the fix I came up with.

# The primary network interface
auto eth0
iface eth0 inet static
address <eth0 IP>
netmask 255.255.255.128
dns-nameserver 1.1.1.1 #Your DNS here
dns-nameserver 1.0.0.1 #Your secondary DNS here
gateway <VPS GATEWAY IP>

Again, not sure why, but it's only happened once out of 5 servers, and it consistently does it on this ONE server.