How to get multiple DNS Geo balancing entry points

Posted on

A server stack is the collection of software that forms the operational infrastructure on a given machine. In a computing context, a stack is an ordered pile. A server stack is one type of solution stack — an ordered selection of software that makes it possible to complete a particular task. Like in this post about How to get multiple DNS Geo balancing entry points was one problem in server stack that need for a solution. Below are some tips in manage your linux server when you find problem about linux, cdn, architecture, , .

I am facing a problem. I will set up a CDN with multiple dedicated servers in multiple zones (Asia, US, Eu), and I will set up an entry point with Nginx proxy with geoip routing.

But with this solution I just move the problem higher. Because this load balancer needs to be somewhere in the world … if I set it in US, the Asia traffic will be very poor and vice versa…

I see solution like GeoDNS by clouddns but I don’t understand how it is working …

Has someone already solved this issue ? 🙂


Some DNS hosting providers (and when you host your own dns some products allow you to do the same) allow you to set up geodns where, depending on the source IP-address of a dns requests, you can tailor the response.

For example when users request you can return the CNAME for US users and CNAME for users from Asia Pacific. For most users that will result that although they all use in their browser URL bar, they will be directed to specific servers that are then geographically nearby.

Like any IP to geographic location scheme that won’t be completely fool proof and accurate, but it should work as intended for a large part of your user base.

Not sure about Cloud DNS, but Amazon web services provides a similar service with Route 53. They provide several differentiation keys, like location of the asking IP address, or measured latency between that IP address and a number of Amazon data centers. Based on that, you can give different IP addresses back as result.

You may need to change your DNS hosting to a new provider, or use sub zone delegation, if you can afford using a subdomain name on your domain (hard if you’re talking about a website’s address, but doable when you load website assets from for instance.

Leave a Reply

Your email address will not be published. Required fields are marked *