desktop
desktop copied to clipboard
Reconnecting with PIA makes Custom DNS go away.
Describe the bug When I reconnect with PIA vpn, my custom DNS goes away, and in its place is a classic local DNS request.
To Reproduce Steps to reproduce the behavior:
- Go to Settings -> Network -> DNS -> Custom -> Primary 1.1.1.1 -> Secondary 8.8.8.8
- /etc/resolv.conf is updated correctly
nameserver 1.1.1.1
nameserver 8.8.8.8
- Disconnect and reconnect
- /etc/resolv.conf is now set to a bad setting, which does not allow connection to the internet.
# Generated by dhcpnameserver 8.8.8.8
# /etc/resolv.conf.head can replace this line
nameserver 10.0.2.1
# /etc/resolv.conf.tail can replace this line
Expected behavior It should maintain the resolv.conf
Observed on: OS: Linux Version: Arch Linux, Cinnamon DE
Is this still happening? Cannot reproduce in general. Perhaps a race condition where your dhcp is rewriting /etc/resolv.conf after the VPN connects?
It definitely was getting rewritten. I switched to using the "Use existing DNS option" and I just manually edit my resolv.conf, but obviously this is not a great solution.