Network Settings not restoring properly after exiting PIA app
Hello, I need to keep my computer on "automatically obtain IP" and "automatically obtain DNS"

However, after connecting to PIA, the disconnecting, it changes to hardcoded values.
Is there any way I can fix this?
Please see picture:
On left: How it looks after I exit app
On right: What I need it to look like
Ive even tried to make a script that will automatically change the values but having no luck on that front either...

Comments
In fact the new client (65) doesn't have the DNS leak option, so try that and report back.
HTH
Vippa
Hi P1r373,
Your network is being configured as part of the DNS Leak protection process. However without any commands to disable DNS Leak protection, your IP and DNS will stay configured as previously set.
You can remove the IP & DNS configuration by running compiling the following scripts into a batch file.
netsh interface ipv4 set address name="Local Area Connection" source=dhcp
netsh interface ipv4 set dnsservers name="Local Area Connection" source=dhcp
@echo It may take a few moments for changes to take effect. You may close this window or
@pause
The batch file be run as an Administrator to be able to work.
Please be aware that there is a confusing disconnect between netsh setting DHCP and what is reported in the network connection properties. If you set a static IP (which is done via DNS Leak protections), then later set DHCP (via the above script), the static IP will still appear in the network connection properties dialog.
I hope this helps.