<html><head></head><body><div style="color:black;font-size:14px">Hello everybody.<br></div><div style="color: black;font-size: 14px;">I'm trying to figure out if it is possible to make pdns (or dnsdist) to return a different answer according to the availability of a service.<br></div><div style="color: black;font-size: 14px;">Suppose we have:<br></div><div style="color: black;font-size: 14px;"><br></div><div style="color: black;font-size: 14px;">- server A with IP: XXX.XXX.XXX.XXX<br></div><div style="color: black;font-size: 14px;">- server B with IP: YYY.YYY.YYY.YYY<br></div><div style="color: black;font-size: 14px;"><br></div><div style="color: black;font-size: 14px;">Server A and B are two web servers which are configured to answer to a given http GET like <a href="http://myservice.net">http://myservice.net</a>. <br></div><div style="color: black;font-size: 14px;">They are both configured in the same way and are independent.<br></div><div style="color: black;font-size: 14px;"><br></div><div style="color: black;font-size: 14px;">I would like the DNS query to return XXX.XXX.XXX.XXX as long as the server A is working (returns 200 to the GET) or return YYY.YYY.YYY.YYY when server A is not working.<br></div><div style="color: black;font-size: 14px;">In other words, I would like to have two records A for myservice.net with a somehow "intelligent" behavior and not a simple round-robin.<br></div><div style="color: black;font-size: 14px;"><br></div><div style="color: black;font-size: 14px;">Can you suggest me how to achieve this, if it's possible?<br></div><div style="color: black;font-size: 14px;"><br></div><div style="color: black;font-size: 14px;">Thanks a lot<br></div><div style="color: black;font-size: 14px;">Riccardo</div><div style="color:black;font-size:14px"><br></div><div style="color:black;font-size:14px" class="signature"><br></div></body></html>