Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reconnecting with PIA makes Custom DNS go away. #42

Open
gholmann16 opened this issue Jun 12, 2022 · 2 comments
Open

Reconnecting with PIA makes Custom DNS go away. #42

gholmann16 opened this issue Jun 12, 2022 · 2 comments

Comments

@gholmann16
Copy link

gholmann16 commented Jun 12, 2022

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

@kp-miguel-galindo
Copy link
Collaborator

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

@gholmann16
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants