Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 wanted to setup something like this:
which points to different ftp servers. For example:

When someone connects to, he would be randomly connected to one of those servers. I was thinking of some DNS based solution, but is there something better ?

share|improve this question

You're looking for a standard DNS Round Robin setup. You just add multiple A records to your DNS server.

There are limitations (see linked document), and to avoid those, you would need an FTP aware proxy or FTP aware load balancer product to sit in front of your FTP servers.

share|improve this answer

There are several FOSS software load balancers available for such use cases. The difference between DNS RR load balancing and tcp load balancers are connection termination. You'd advertise one (or multiple) A record that points to one or more load balancers (LBs). The LBs can then send traffic back to a number of backend ftp servers. The benefit here is greater control of how the load is distributed to the backend FTP servers. Similarly, if you need to take a FTP server down, tcp load balancing makes the process much easier. With DNS RR, you'd have to ensure you delete the backend FTP server and wait for DNS caches to update before you take down an FTP server or risk users hitting the down IP.

share|improve this answer

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.