I have a custom DNS server set in my home network via the Network Settings. When I connect my laptop at home and then move to another network, the DNS server setting doesn't change. This means I have to manually change the DNS server each time I connect to a different network because it tries to reach an IP that isn't a DNS server in that network. Even when I turn off Wi-Fi or disconnect and reconnect, it doesn't switch to the appropriate DNS server for the new network. This issue persists whether the settings for the other network are manual or automatic. How can I resolve this?