<br><br><div class="gmail_quote">On Tue, Mar 20, 2012 at 4:40 PM, Stefan Certic <span dir="ltr"><<a href="mailto:stefan@routotelecom.com">stefan@routotelecom.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hi,<div><br></div><div>That can be achieved using iptables:</div><div><br></div><div><div>iptables -A PREROUTING -i eth0 -p tcp --dport 53 -m state --state NEW -m nth --counter 0 --every N --packet 0 -j DNAT --to-destination <a href="http://192.168.1.98:53" target="_blank">192.168.1.98:53</a></div>

<div>iptables -A PREROUTING -i eth0 -p tcp --dport 53 -m state --state NEW -m nth --counter 0 --every N --packet 1 -j DNAT --to-destination <a href="http://192.168.1.99:53" target="_blank">192.168.1.99:53</a></div><div><br>
</div><div>Where N represent packet number.</div>
<div><br></div><div>Regards,</div><br><div class="gmail_quote"><div><div class="h5">On Tue, Mar 20, 2012 at 10:11 AM, trm asn <span dir="ltr"><<a href="mailto:trm.nagios@gmail.com" target="_blank">trm.nagios@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="h5">
Dear List,<br><br>Is there any mechanism to load balance Caching-DNS server. For example..<br><br>Cache-DNS1 : 192.168.1.98<br>Cache-DNS2: 192.168.1.99<br><br>Client : 192.168.1.199<br><br>When  192.168.1.199 send 10 request to query cache-dns then this 10 request will be send to each Cache-DNS server with a load balance method. Each server will get 5 requests.<br>


<br><br>/\<span><font color="#888888"><br>TRM<br>
</font></span><br></div></div><div class="im">_<br></div></blockquote></div></div></blockquote></div><br>Requirement is slightly different.<br><br>The client's request can go to any of the Caching server. If one of the Caching server down, then also it should serve the request from 2nd server. Is there any way where I can configure the VIP and that VIP will communicate to the down stream both the caching dns server. So the client will be configured with VIP in resolve.conf file.<br>
<br>/\<br>TRM<br>