<div dir="ltr">Hi Remi<div><br></div><div>Thank you very much for the clue! It works as I wanted :D. I did some test also and the load balancer switch between the server as magic!</div><div><br></div><div>Regards,</div><div><br></div><div>Federico</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-05 16:05 GMT+00:00 Remi Gacogne <span dir="ltr"><<a href="mailto:remi.gacogne@powerdns.com" target="_blank">remi.gacogne@powerdns.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Federico,<br>
<span class=""><br>
On 01/05/2016 11:37 AM, Federico Olivieri wrote:<br>
> I would like to understand if there is any way to configure a rule that<br>
> put a DNS server in "hot standby" mode. I'll give you an example:<br>
><br>
> I have 2 or more DNS servers configured in dnsdist. I want forward all<br>
> queries to the primary server and only if the primary server goes down,<br>
> redirect the traffic to the second one. Borrowing the terms from HSRP, I<br>
> would put a secondary server in hot stand-by and use it only in case of<br>
> fault of the primary.<br>
> I know that I can play with the weight and wrandom policy but I was<br>
> wondering if there is a more specified rule for what I'm looking for<br>
<br>
</span>I believe the "firstAvailable" policy with no QPS limit on the servers<br>
does exactly what you are describing, but if I'm mistaken please let me<br>
know, since your use case is probably quite common!<br>
<br>
RĂ©mi<br>
<br>
<br>
</blockquote></div><br></div>