Please follow the below template, it will help us to help you!
[DNS queries should take a bit as they are done, but not on further use]
[DNS Queries are taking very long (multiple seconds, or even time outs, and have gotten errors along BAD CONFIG in the past)]
Have been having issues since updating to 4.2.2; no issues beforehand. DNS resolver was actually failing to work at all at first, then 30 minutes later started up but things have been glacial since (5 seconds to resolve). At one time I had 334,000 DNS injections for the default 10,000 slots. IPV6 is not used by ISP, just disabled in router (7800 that was just updated as well), been trying to find out how to do it in the pihole but having issues.
restarting systemd-resolver seems to help but process tends to continue to lag, though latest restart (the one from this debug token) seems to be ok.
Would appreciate help if I should disable ipv6 for now, or if something else is causing havoc.