major4579 0 Posted ... I was having a problem with Eddie not deactivating the Network Lock when I shutdown my computer. See When computer shutsdown Eddie's netlock is still active. Now I'm experiencing the DNS issue, were an unknown DNS server is still active when I shutdown. I need to go into Network settings and check "Obtain DNS server address automatically". If I don't do this I do not have internet access. Why is Eddie leaving the setting for a specific DNS server when it shuts down and how do I fix it. Thanks, Marc Quote Share this post Link to post
Staff 10714 Posted ... @major4579 Hello! While Eddie is connected, it replaces the DNS servers of your network adapters with the VPN DNS server (a 10.x address that can be reached only through the VPN), so that DNS queries can't leave the tunnel. When the connection ends normally (Disconnect or Exit), Eddie puts the original setting back, "Obtain DNS server address automatically" in your case. If Windows turns the computer off while Eddie is still connected, Eddie is closed before it can do that, and the adapter keeps the 10.x DNS server. Without the VPN that server can't be reached, so no name resolves and no website loads. Unlike the Network Lock firewall rules of your other topic, which don't survive a full boot (hence the fix with Fast Startup off), this is a permanent adapter setting and survives any boot. Eddie also saves the original setting and restores it by itself the next time it starts, so starting Eddie fixes the DNS too. Instead of the Network settings, you can also run this command in PowerShell opened as administrator: Get-NetAdapter | Set-DnsClientServerAddress -ResetServerAddresses It sets every adapter back to automatic DNS, IPv4 and IPv6. Use it only if you don't set DNS servers by hand on any adapter, because it removes them too. To prevent it, Eddie must exit before the shutdown. Your batch file waits up to one minute for that, so the leftover DNS means Eddie was still running after that minute. A possible reason: if you now start Eddie without your command line, --gui.exit_confirm=False no longer applies, and the close request from taskkill opens the "exit?" confirmation, which waits for an answer nobody gives. So: 1. In Eddie, Preferences > UI, untick "Exit confirmation prompt" and save. 2. As a safety net, add this line to your batch file, just before "shutdown /s /t 0": powershell -NoProfile -Command "Get-NetAdapter | Set-DnsClientServerAddress -ResetServerAddresses" The task already runs with highest privileges, which this command needs. You can test step 1 without waiting for the night: while Eddie is connected and minimized to the tray, run "taskkill /IM Eddie-UI.exe" in a Command Prompt opened as administrator. Eddie should disconnect and close within a few seconds, and the adapter should be back to automatic DNS. If it doesn't, please tell us your Eddie version, how you start Eddie now and what taskkill prints. Kind regards Quote Share this post Link to post