I would like to setup ROS to resolve sequentally by each DNS-server in list.
So, if I tried to resolve flibusta.lib, and 1.1.1.1 replied “name or service not known” ROS try next server 195.10.195.195, which will return the IP.
If any way to do it?
If the domains are foreseeable, I´d implement a basic conditional forwarder with L7 matcher and dst-nat.
And in case the returned addresses are all in a foreseeable subnet, you can even add a term for reverse lookup:
/ip firewall layer7-protocol
add name=„fibusta“ regexp=„fibusta.lib|[0-9]+.195.10.195.in-addr.arpa"
/ip firewall nat
add action=dst-nat chain=dstnat comment=„fibusta.lib“ dst-port=53 layer7-protocol=„fibusta“ protocol=udp to-addresses=195.10.195.195 to-ports=53
.lib is a non existing Top Level Domain (TLD)
Check for you own: https://data.iana.org/TLD/tlds-alpha-by-domain.txt
Unfortunately, it’s not foreseeable, moreover, it’s four DNS-servers, I would rike to request sequentally, if one said I don’t know, than request from next e.t.c. But, if the first resolve successfully, than return this result.
It’s part of https://www.opennic.org/
Using Unbound or other DNS resolver can do what you want by default. You can run it on a small computer like a RaspberryPI.
Yeah, in that case I´d recommend unbound as well.