d4rkcat / pia

Private Internet Access VPN Linux bash client
GNU General Public License v2.0
92 stars 18 forks source link

Avoid resolv.conf from being overwritten #4

Closed gregor160300 closed 6 years ago

gregor160300 commented 6 years ago

On Arch Linux and Arch based OSes the system service automatically adds the router as a DNS provider, this causes your ISPs DNS to be used. Upon running with the DNS option stop the service and start it again on exit.

d4rkcat commented 6 years ago

Thanks for your pull request. I run arch and this does not happen with my system. I am using dnsmasq running on localhost to provide DNS, and have systemd-resolved.service disabled. I generally expect the user to take responsibility for services they run on their own systems that mess with DNS. I am not comfortable stretching this script to make system modifications at this level. I'm not sure but I don't expect systemd-resolved randomly changes resolve.conf in the middle of a session, I think it's only done when booting up the system.

gregor160300 commented 6 years ago

Thanks for your response, I understand your decision, but maybe consider adding a warning to the readme telling users they should take care of this themselves. As for systemd-resolved it has changed my resolve.conf mid session, it always kept adding my router as the first DNS causing PIA's to be ignored.