I have found this awesome guide on how to set up DoH: https://jcutrer.com/howto/networking/mi ... over-https
But, it is a bit out of date and the steps are manual in the GUI instead of automated with a script. Can someone help automate the remaining steps I need in the <> brackets?
/tool fetch url=https://curl.se/ca/cacert.pem
/certificate import file-name=cacert.pem passphrase=””
<ASKS FOR PASSWORD, NEED TO REMOVE THIS PROMPT>
<REMOVE EXISTING DNS SERVERS IF THEY EXIST>
<Add 2 Static DNS Entries for cloudflare-dns.com to Address: 104.16.248.249 and 104.16.249.249>
<ADD DOH SERVER TO https://cloudflare-dns.com/dns-query>
<CHECK VERIFY BOX>
<CHECK ALLOW REMOTE REQUESTS BOX>