Community discussions

MikroTik App
 
cicserver
Member
Member
Topic Author
Posts: 303
Joined: Sun Jul 24, 2011 12:04 pm

Load balancing DNS requests

Mon Aug 25, 2014 8:00 pm

Can we load balance DNS server requests with other servers in Mikrotik? like in round robin style ?
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2400
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: Load balancing DNS requests

Mon Aug 25, 2014 9:27 pm

In a way, yes. You could have one device (a load balancer; be it a MikroTik router or something more specialized for a load balancer) forward every Nth packet to one IP, while forwarding every (N+1)th packet to another.

However, since DNS is (mostly) a UDP protocol, i.e. it has only one request packet and one response packet, you won't really be able to handle much more load than if the load balancer itself is a DNS server.

I mean, the very process of checking the packet, forwarding it, and forwarding back the response packet is pretty much as taxing as a DNS query IF the name is already in the DNS' cache. Sure, forwarding is less taxing than a first time DNS lookup, but surely you'd use a DNS cache.
 
paulsa
newbie
Posts: 34
Joined: Tue Oct 29, 2013 10:24 am

Re: Load balancing DNS requests

Tue Aug 26, 2014 12:01 pm

We use unbound with anycast and bgp

Who is online

Users browsing this forum: Bing [Bot], GoogleOther [Bot], grusu, Josephny, kleshki and 26 guests