Cannot resolve name server after moving to another network

Try flush all those rules for diagnosing.
Might want to do this on console as you might get kicked from ssh.

And check below again:

dig ns1.pi-hole.net @8.8.8.8

To restore the Netfilter(iptables) rules, just reboot.