+ Reply to Thread
Results 1 to 10 of 10

Thread: GeoDNS

  1. #1

    GeoDNS

    I've got machines in the UK and the US, and am interested in using geodns to ensure visitors go to the nearest DC. However, the external geodns services I've had quotes from so far are priced per request and simply work out far too expensive for the volumes involved.

    Someone suggested having the primary nameserver in the UK and the secondary in the US, and configuring each to point at their local DCs; they said routing rules would ensure people used the response from their nearest one. However, that really really doesn't sound right to me - I thought nameservers are used in no particular order, and one would be chosen before routing became an issue. Surely it's not common practice to query both simultaneously and use the first response?

    I imagine real geodns services use anycast to get routed to the closest nameserver, which then does a lookup on the requesting IP to find their geographical zone, then maps that to the closest IP for that zone. A quick google found a geodns patch for BIND that seems to do just that (skipping anycast), but has anyone here tried it?

    Can anyone recommend a good geodns solution, either one I can run myself on the cheap, or a third-party service that doesn't cost the earth?

  2. #2
    Certified VIP Host
    I have made 2222 posts
    360 posts within 6 months
    Contact Me, Company profile
    administrator is on a distinguished road
    I made one once using perl, theres a dns module for perl, it took about an hour tops

  3. #3
    Certified Standard Host
    I have made 917 posts
    7 posts within 6 months
    Contact Me, Company profile
    BurtyB is an unknown quantity at this point
    Quote Originally Posted by burble View Post
    I imagine real geodns services use anycast to get routed to the closest nameserver, which then does a lookup on the requesting IP to find their geographical zone, then maps that to the closest IP for that zone. A quick google found a geodns patch for BIND that seems to do just that (skipping anycast), but has anyone here tried it?
    ClamAV use it to redirect you to a close signature mirror and I'd guess theres lots of other people using it too. I think PowerDNS can also do it.

    Just remember its based off the DNS server that makes the request rather than the client.

    ChrisB.
    Chris Burton Othello Technology Systems Ltd AS29527 Company#03894981 VAT#GB-782561410 Tel:0871 277 6875
    consultancy domains email forwarding resellers ecommerce colo rackspace ip transit secondary mx/dns dedicated servers backup/DR
    * OthelloHosts.net Linux and Windows High-Availability Professional Email / Web / Secure Hosting
    * OthelloVPS.net Managed Xen Enterprise Virtual Private Servers and Dedicated Servers
    # Currently buying web hosts and domain resellers - www.hostacquisitions.co.uk
    Views expressed in this post are my own and not Othello Technology Systems Ltd.

  4. #4
    No Wires Ltd
    no reviews yet. Post Review
    Certified Standard Host
    I have made 633 posts
    21 posts within 6 months
    Contact Me, Company profile
    abtme is on a distinguished road
    There's a powerdns backend that does a good job of this, and it's free. I've not got a link, but a bit of googling should help you. I think it's on blitzed.org or something

  5. #5
    Certified VIP Host
    I have made 2444 posts
    51 posts within 6 months
    Contact Me, Company profile
    Cranky is on a distinguished road
    Quote Originally Posted by burble View Post
    I imagine real geodns services use anycast to get routed to the closest nameserver, which then does a lookup on the requesting IP to find their geographical zone, then maps that to the closest IP for that zone. A quick google found a geodns patch for BIND that seems to do just that (skipping anycast), but has anyone here tried it?

    Can anyone recommend a good geodns solution, either one I can run myself on the cheap, or a third-party service that doesn't cost the earth?
    We're running the GeoDNS patch for Bind on a few VPS's for customers. Find a small VPS and a friendly provider and they'll set it up for you free/cheaply and it'll cost you very little time to maintain, and bind requires very little memory so the VPS should be cheap.

    Alternatively, at www.domain.com you can have a script which detects the users location and redirects them to us.domain.com or uk.domain.com depending on their IP. This can easily be achieved using many methods such as perl modules or Apache's mod_geoip.
    Andrew Cranson, Director of Operations & Parallels Specialist
    Layershift :: UK & US hosted Domains, Shared, Reseller, VPS, DDS, Dedicated, Managed, Collocation
    WizzVPS.com :: UK's Cheap VPS provider Instant Setup, 24x7 support, Several Linux OS's, instant reboots/reinstalls
    Company Number: 6036217 / VAT Number: GB903034962

    Unlike many providers, we offer True 24x7 Technical Support - peace of mind around the clock!

  6. #6
    Try something like ip2location.com and have a simple redirect script as mentioned by Cranky. This is simple enough in PHP, here is something for you. Feel free to use it:

    PHP Code:
    <?
    $surfersip 
    $_SERVER['REMOTE_ADDR'];
    if (
    preg_match("/192.168.0/",$surfersip)) {
          
    header('Location: http://uk.abc.com/');
    } else if (
    preg_match("/192.168.1/",$surfersip)) {
          
    header('Location: http://usa.abc.com/');
    } else {
          
    header('Location: http://www.abc.com/i_dont_know_where_you_are.html');
    };
    ?>
    This will be more accurate as its not dependant on which DNS server your customer is using, its based on there actual IP and also allows you to geographically load balance.

    You can also try some free solutions available but there not as accurate in my experience. Also remember the usual limitations on location determination which are Satellite Internet, VPN and Mobile Broadband (which is backhauled to your home network which is a double edged sword).

    Stuart
    BlueWave Communications Ltd
    The Isle of Man's Communications Company
    Virtual Secretary | Offshore Colocation | Wholesale SMS
    Registered Office: Shannon Court, Bowring Road, Ramsey, Isle of Man, IM8 2LQ
    Last edited by bluewave; 8th September 2008 at 02:20 PM.

  7. #7
    Thanks for all the replies!

    I'm looking at this for both download speed and load-balancing, so would prefer to do it at the dns level; that way, by the time it hits the web server it will already be in the right data centre.

    From your positive comments, it looks like I should be ok going with powerdns or the bind patch - will probably try that out first, as I'm already using bind at the moment.

    Thanks for all the help!

  8. #8
    Certified VIP Host
    I have made 7045 posts
    302 posts within 6 months
    Contact Me, Company profile
    Karl is on a distinguished road
    Bind, why would you if you don't have to? Ewww...

    AFAIK TinyDNS AKA DJBDNS will do it.
    Karl Austin :: Owner :: KDA Web Services Ltd. :: UK Web Hosting and Servers
    0800 542 9764 :: Company: 04114724 :: VAT: GB 842 9597 81
    "Individual Solutions for Individual Customers" - Call us today for free

    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. - Einstein

  9. #9
    Certified Standard Host
    I have made 917 posts
    7 posts within 6 months
    Contact Me, Company profile
    BurtyB is an unknown quantity at this point
    Quote Originally Posted by Karl View Post
    AFAIK TinyDNS AKA DJBDNS will do it.
    Shoot me in the head please

    ChrisB.
    Chris Burton Othello Technology Systems Ltd AS29527 Company#03894981 VAT#GB-782561410 Tel:0871 277 6875
    consultancy domains email forwarding resellers ecommerce colo rackspace ip transit secondary mx/dns dedicated servers backup/DR
    * OthelloHosts.net Linux and Windows High-Availability Professional Email / Web / Secure Hosting
    * OthelloVPS.net Managed Xen Enterprise Virtual Private Servers and Dedicated Servers
    # Currently buying web hosts and domain resellers - www.hostacquisitions.co.uk
    Views expressed in this post are my own and not Othello Technology Systems Ltd.

  10. #10
    Certified VIP Host
    I have made 7045 posts
    302 posts within 6 months
    Contact Me, Company profile
    Karl is on a distinguished road
    Ahhh, so you'd rather use a bloated, buggy piece of software then? The only reason we use bind anywhere is because that's what the CPs in use make us use, anywhere else we don't. I think of bind as being like Group 4 security in the early days, does the job most of the time, but you know it's only a matter of time before they let another murderer through.
    Karl Austin :: Owner :: KDA Web Services Ltd. :: UK Web Hosting and Servers
    0800 542 9764 :: Company: 04114724 :: VAT: GB 842 9597 81
    "Individual Solutions for Individual Customers" - Call us today for free

    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. - Einstein

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Content Relevant URLs by vBSEO 3.5.0 RC2