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”.

Use DoH Server:
(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?


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