Feature request: DNS server priority

Hello.
I want something like route distance for DNS servers.
Example: in normal situation all DNS requests should go to DNS servers with priority=0, but when they become unreachable by any reason all DNS requests should go to servers with priority=1 and so on.