Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have 2 web servers that I want to load balance between them using the DNS technique.

But the kind of load balancing I want to implement is a little bit different: When a request comes in to the load balance server (Which I'll set up in addition to the 2 other servers), I want the load balancer to go through a short algorithm that I'll wrote - in order to decide to which server he should send the traffic.

Any similar implementation, or examples for general DNS load balancing that I should review? Please, anything will help - preferably examples.

share|improve this question

migrated from Aug 3 '11 at 20:15

This question came from our site for professional and enthusiast programmers.

up vote 0 down vote accepted

You'll find plenty of examples by searching for commercial GSLB documents (from F5, Citrix, Brocade, etc). Don't know what platform you're working on, but you may be able to implement this as a patch to a DNS server software such as bind.

share|improve this answer
Sorry for responding late, have been busy at some stuff. Any chance you'll expand on the BIND thing? (Those GSLB are too pricey for me, so this is my second option.) – Ron Aug 7 '11 at 21:02
Hah, I thought you were going to write code for it and hence suggested BIND. I don't think there is a BIND plugin / mode that does GSLB (as the DNS purists hate GSLB). You may be find a purely software based GSLB from a commercial LB vendor for cheap / free. I don't want to suggest any, but you'll find it by googling. – jman Aug 8 '11 at 21:33
I'll try to check out for a solution with a BIND implementation. I found some great articles explaining it. – Ron Aug 9 '11 at 16:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.