AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Add a new upstream DNS request policy

Open Xarth-Mai opened this issue 2 years ago • 1 comments

Prerequisites

  • [x] I have checked the Wiki and Discussions and found no answer

  • [X] I have searched other issues and found no duplicates

  • [X] I want to request a feature or enhancement and not ask a question

Description

What problem are you trying to solve?

I have an unstable upstream server A and a stable upstream server B, and I want it to be preferred when upstream server A is running, only to automatically select a backup upstream server when he fails

Proposed solution

Can a weighted parallel request mode be added? Request multiple upstreams at the same time, continue to wait for the upstream server with higher weight for a period of time after getting the result, if you get the response from the upstream server with higher weight within the set time, return the answer from the server with higher weight, otherwise reply to other weight Low server promises.

Alternatives considered

Request the first server and wait for a certain amount of time, if it times out, select the second server in turn, which is less efficient but easy to implement.

Additional information

If AdGuardHome can have two upstream server lists, one is more high-quality and the other is more stable, use the algorithm to select the appropriate upstream to take into account better experience and disaster tolerance.

Xarth-Mai avatar Sep 06 '22 15:09 Xarth-Mai

I am looking for the same thing.

I have a local Caching server as upstream running on my NAS, however if for some reason my NAS goes down (eg. during an os update) I want it to failover to another upsteam server eg 1.1.1.1.

As long as the NAS is up i do want all traffic to go trough, otherwise the Caching mechanism doesn't work.

bobsiboo avatar Sep 09 '22 09:09 bobsiboo

+1 This can be very useful for a multi dns server setup.

cloudwindy avatar Sep 24 '22 06:09 cloudwindy

Hi I have AGH as my ad blocker, also we have a caching DNS server on my network, I want the AGH forward requests to the local DNS server, and if it failed, forward it to 1.1.1.1 or 8.8.8.8 It will be good if a Failover Policy be available for Upstream DNS servers

Heshmatkhah avatar Jul 17 '23 10:07 Heshmatkhah