Email notifications have stopped working

I’m getting below error when i created a test task and created a reminder on it. It used to work fine up until last month. Not sure what happened.

Error during connect to smtp server: dial tcp: lookup smtp.gmail.com on 127.0.0.11:53: server misbehaving

after some digging i found our that my container’s dns was failing. I never mess inside containers so it means my host’s dns is messed up. to fix it i checked /etc/resolv.conf and /etc/systemd/resolved.conf,

i added nameserver 127.0.0.1 to /etc/resolv.conf
and
added DNS=127.0.0.1 to /etc/systemd/resolved.conf

I’m guessing something went wrong in last pihole update - not sure what though. I’m glad that this is fixed as i had other containers that were having dns problems as well (nginxproxymanager).

hope this helped anyone that’s having same issue.

cheeres