desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Reconnecting with PIA makes Custom DNS go away.

Open gholmann16 opened this issue 3 years ago • 2 comments

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:

  1. Go to Settings -> Network -> DNS -> Custom -> Primary 1.1.1.1 -> Secondary 8.8.8.8
  2. /etc/resolv.conf is updated correctly
        nameserver 1.1.1.1
        nameserver 8.8.8.8
  1. Disconnect and reconnect
  2. /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

gholmann16 avatar Jun 12 '22 01:06 gholmann16

Is this still happening? Cannot reproduce in general. Perhaps a race condition where your dhcp is rewriting /etc/resolv.conf after the VPN connects?

kp-miguel-galindo avatar Sep 12 '22 08:09 kp-miguel-galindo

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.

gholmann16 avatar Sep 12 '22 15:09 gholmann16