I have a setup with multiple VLANs and DHCP servers attached to them. I have already configured a DOH (DNS over HTTPS) server in the router.
I have followed the standard guide NextDNS provides and it works without a flaw:
/tool fetch url=https://curl.se/ca/cacert.pem
/certificate import file-name=cacert.pem
/ip dns set servers=""
/ip dns static add name=dns.nextdns.io address=ipv4_1 type=A
/ip dns static add name=dns.nextdns.io address=ipv4_2 type=A
/ip dns static add name=dns.nextdns.io address=ipv6_1 type=AAAA
/ip dns static add name=dns.nextdns.io address=ipv6_2 type=AAAA
/ip dns set use-doh-server=“https://dns.nextdns.io/xxxxxx” verify-doh-cert=yes
Now what I want to do is to setup a second DOH server that will only be used by a specific VLAN (or more than one).
I have tried to edit the DNS servers in the DHCP server menu, but when applying the url it complains that only IP address are allowed (which makes sense).
I have also searched the internet but did not found any mentions on the topic. Is this supported by RouterOS? If not can you recommend any alternatives? I thought using a custom local DNS server which will decide the server, but as I do not have much knowledge on this matter, I am not sure how to distinguish which request belongs to which VLAN.
As I am not very familiar, can you provide a simple example or some documentation for this?
From my understanding, you want me to run multiple instances of RouterOS in another machine that will be treated as DNS managers. Each one will have its own DOH server. Then I will go to my MikroTik and for each DHCP server I will assign the DNS addresses to the specific RouterOS instance?
Rextended will also send you the latest DELL XPS computer with latest Intel and 32Mbs ram to help you with all those CHRs… what is advice without backing it up with $$$$
Okay, just asking what kind of resources are needed to run them??
I wolud like to ahve more than ons solution without VLAN for different IP-Ranges in my LAN. The IP 1.1.1.1 is just an example. my idea is doing this with https://nextdns.io or https://flashstart.com.
Dear Foresthus,
it’s Francesco from FlashStart.
Since you mentioned our platform, the answer is “yes”. You can redirect your DoH and DoT connections to doh.flashstart.com or dot.flashstart.com (respectively port 443 and 853). Be aware there might be a browser certificate warning somewhere..
To intercept Doh and DoT connections and force people to enable safe surf filtering, I’d suggest to block at DNS level the DoH/DoT servers in order to automatically downgrade to the normal UDP/Dns. Into our platform you can find the right Doh category!