Temporary disabling DoT

Good day,
I'm using DoT with dnsmasq and it works great.
However, when I connect to my work VPN network using Cisco Anyconnect, I can't reach any of our internal sites.
I suspect that it is due to the router ignoring the provided DNS.
Is there a way to temporarily disable the router DNS server and use the one provided by the work network?