<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 17/03/2022 15:50, Pepe Charli wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAAE3ZSgUpqm3oFyeHDtAYbQWDVbQp+ykZ04g52YheZuF_A0brw@mail.gmail.com">
<div>But the idea is to have in the future a file
forward-zones-file of the type<br>
</div>
<div><a href="http://test1.com" moz-do-not-send="true">test1.com</a>=192.168.1.1<br>
</div>
<div><a href="http://test2.com" moz-do-not-send="true">test2.com</a>=192.168.1.2</div>
<div>.=192.168.68.63, 192.168.68.64</div>
</blockquote>
<p>I think dnsdist is better for that application - it's what it's
designed for. For example, it actively tests the backends with a
query every second, so failover is faster.<br>
</p>
<p># sample configuration<br>
</p>
<p>setACL({'192.168.0.0/16','10.0.0.0/8'})<br>
<br>
newServer({address='192.168.68.63', pool='default'})<br>
newServer({address='192.168.68.64', pool='default'})<br>
newServer({address='192.168.1.1', pool='test1'})<br>
newServer({address='192.168.1.2', pool='test2'})<br>
<br>
addAction({'test1.com.'}, PoolAction('test1'))<br>
addAction({'test1.com.'}, PoolAction('test2'))<br>
addAction(AllRule(), PoolAction('default'))<br>
</p>
</body>
</html>