Web Host Chat - The UK hosting forum
Home QLinks Members Your Profile Register FAQ's Hosts Only Area SMS Alerts Game Servers
Go Back   Web Host Chat > Web Hosting Chat > Domain Names and the industry
Reply
 
LinkBack Thread Tools
Old 6th September 2008   #1 (permalink)
Platinum Bad Boy
 
Join Date: Jun 2006
Posts: 474
burble is on a distinguished road
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?
burble is offline   Reply With Quote
Old 6th September 2008   #2 (permalink)
Ze Administrator!
 
Join Date: Jun 2007
Posts: 1,335
administrator is on a distinguished road
I made one once using perl, theres a dns module for perl, it took about an hour tops
administrator is online now   Reply With Quote
Old 6th September 2008   #3 (permalink)
 
BurtyB's Avatar
 
Join Date: Apr 2004
Location: Newark, UK
Posts: 864
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.
BurtyB is offline   Reply With Quote
Old 7th September 2008   #4 (permalink)
Platinum Bad Boy
 
Join Date: Jan 2006
Location: West Yorkshire
Posts: 460
CrystalVPS 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
__________________
No-Wires.co.uk - sales@no-wires.co.uk
VPS Servers / Co-location / Dedicated Servers / ADSL
CrystalVPS is offline   Reply With Quote
Old 7th September 2008   #5 (permalink)
 
Cranky's Avatar
 
Join Date: Jul 2002
Location: Cluj-Napoca, Transylvania & Didsbury, UK
Age: 23
Posts: 2,072
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!
Cranky is offline   Reply With Quote
Old 8th September 2008   #6 (permalink)
 
Join Date: Sep 2008
Location: Isle of Man
Posts: 37
bluewave is on a distinguished road
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.
bluewave is offline   Reply With Quote
Old 8th September 2008   #7 (permalink)
Platinum Bad Boy
 
Join Date: Jun 2006
Posts: 474
burble is on a distinguished road
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!
burble is offline   Reply With Quote
Old 8th September 2008   #8 (permalink)
 
Karl's Avatar
 
Join Date: Nov 2001
Location: Derbyshire
Posts: 6,471
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
Karl is offline   Reply With Quote
Old 9th September 2008   #9 (permalink)
 
BurtyB's Avatar
 
Join Date: Apr 2004
Location: Newark, UK
Posts: 864
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.
BurtyB is offline   Reply With Quote
Old 9th September 2008   #10 (permalink)
 
Karl's Avatar
 
Join Date: Nov 2001
Location: Derbyshire
Posts: 6,471
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
Karl is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


User Information
»REGISTER NOW!
Domain Names and the industry dotcoms, .co.uk, registrars, tags, whois and more; chat about it here


Quick forum search
 

Special Hosting Offers

Hot Stuff


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0