Setting up DoH on Mikrotik

I am trying to set up Gateway for Teams on my Mikrotik Router. I have put the following config so far but get “DoH server response not OK: 404: 404 page not found”.

Server: 172.64.36.1
Use DoH Server: https://xxxxxxxx.cloudflare-gateway.com/dns-query
(where xxxxxxxx = unique string copied from my Gateway for Teams account)
I have ticked Verify DoH Certificate

I downloaded the Cloudflare crt and imported it to my Mikrotik
.
Can someone say whether this is the correct set up? Why might I be getting the error above?

And lastly, do I actually need to use DoH to use Gateway for Teams?

Charlie

That is probably not the IP address that xxxxxxxx.cloudflare-gateway.com resolves to. You will likely want to change that to the correct IP(s) for that host.