Re: Loadbalance caching dns server

2012-03-20 Thread Daniel McDonald
On 3/20/12 7:15 AM, "trm asn" wrote: > > > On Tue, Mar 20, 2012 at 4:40 PM, Stefan Certic > wrote: >> Hi, >> >> That can be achieved using iptables: >> >> iptables -A PREROUTING -i eth0 -p tcp --dport 53 -m state --state NEW -m nth >> --counter 0 --every N --packet 0 -j DNAT --to-destina

Re: Loadbalance caching dns server

2012-03-20 Thread trm asn
On Tue, Mar 20, 2012 at 4:40 PM, Stefan Certic wrote: > Hi, > > That can be achieved using iptables: > > 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 > 192.168.1.98:53 > iptables -A PREROUTING -i eth0 -p tc

Re: Loadbalance caching dns server

2012-03-20 Thread Kevin Darcy
On 3/20/2012 5:19 AM, Matus UHLAR - fantomas wrote: On 20.03.12 14:41, trm asn wrote: Is there any mechanism to load balance Caching-DNS server. For example.. Cache-DNS1 : 192.168.1.98 Cache-DNS2: 192.168.1.99 Client : 192.168.1.199 When 192.168.1.199 send 10 request to query cache-dns then

Re: Loadbalance caching dns server

2012-03-20 Thread Stefan Certic
Hi, That can be achieved using iptables: 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 192.168.1.98:53 iptables -A PREROUTING -i eth0 -p tcp --dport 53 -m state --state NEW -m nth --counter 0 --every N --pack

Re: Loadbalance caching dns server

2012-03-20 Thread Amir Haris Ahmad
You also could try PF in BSD http://www.openbsd.org/faq/pf/pools.html -- "If someone feels that they had never made a mistake in their life, then it means they had never tried a new thing in their life" Regards, Amir Haris Ahmad M.Sc. in Computer Networking CNE6, MCP, GSEC, GCIH, LPIC1, CISE,

Re: Loadbalance caching dns server

2012-03-20 Thread Matus UHLAR - fantomas
On 20.03.12 14:41, trm asn wrote: Is there any mechanism to load balance Caching-DNS server. For example.. Cache-DNS1 : 192.168.1.98 Cache-DNS2: 192.168.1.99 Client : 192.168.1.199 When 192.168.1.199 send 10 request to query cache-dns then this 10 request will be send to each Cache-DNS server