Whenever I set custom DNS upstream adress, I cannot load any page. It happens with stubby, unbound or custom DNS like NextDNS. Querry is filled fine, even NextDNS log is filled, but browser wont load anything and I lose my internet connection. Pi-hole and internet works fine with one of defaults upstreams, like Quad9 or Google.
I'm able to set DoH with NextDNS directly in MikroTik router and it works fine, but then pi-hole is not in middle. I would like to have client->router->pi-hole->stuby with nextDNS or unbound->internet.
I suspect firewall in router or disabled IPv6. But cannot verify.
That would suggest that your firewall would be involved.
I'm not familiar with your Microtik's firewall, so I am unsure whether your router firewall rules are suitable to match your intentions. Specifically, I 'd somehow expected to see a destination IP address (Pi-hole host), and also an exemption for traffic originating from Pi-hole's host's IP itself.
You should consider to also consult your firewall's documentation and support channels.
Noone is aswering my question on MikroTik forum, so I have another idea.
Is it possible to route DNS request from pihole back to router and then to internet?
Instead of this: client - router - pihole - custom upstream (unbound) - internet
I would like to have this: client - router - pihole - router - DoH - internet (DoH is supported and work fine on RouterOS)
Please, can you be more specific? I'm not sure what I need to look for? Is is possible to set it in pihole or do I need some settings for firewall rules? Thanks.