Solved

Implementation of GeoDNS

Posted on 2009-07-09
2
1,182 Views
Last Modified: 2012-05-07
I would like to  implement geodns in our environment.Please help
0
Comment
Question by:USTRLLC
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Expert Comment

by:michofreiha
ID: 24821469
Dear Sir,

Kindly follow instructions in the below link and everything will work fne with you

http://www.maxmind.com/app/installation

Regards
0
 
LVL 6

Accepted Solution

by:
remeshk earned 500 total points
ID: 24940848
Hi,



There are many databases and pieces of code out there that allow you to detect which country (or even city) a visitor to your website is from. Most of this code is intended to allow you to adjust the content of your website. Very useful. Really!
There are instances however where adjusting content is not enough. Sometimes you will want to redirect users to a server that is local to them. This could be because you have lag-sensitive traffic like VoIP of game servers. It could also be that you generate a lot of traffic and local traffic is simply cheaper than transit. Or maybe you have multiple entry points for VPN and email traffic into your corporate network. Whatever it is, the only way to do this transparently is to make sure your DNS hands out the right IP address to your users. Doing this based on ip-country databases is not ideal but it should get you a long way.
I looked around a bit for a way to do this. There are a few special DNS servers for this purpose. There are also some patches for Bind. Im not a fan of either special or patches though, they often imply maintenance.
So I wrote a little command-line script called geobind.php to convert the database provided by Webnet77 to Bind acls. (Requires PHP4 cli version to be installed; make sure to edit variables at the beginning of the script.)
Once you have these acls you can use Binds view functionality to serve different versions of your zone file to different parts of the world. Each zone file would of course point to IP addresses that are local to that specific part of the world.
Imagine you have 3 zone files: one for europe, one for the americas and one for the rest of the world. You simple edit named.conf.local to include the acls for europe and the americas. E.g.:
include "/etc/bind/named.conf.options";
include "/etc/bind/acl-europe_east.inc";
include "/etc/bind/acl-europe_sout.inc";
include "/etc/bind/acl-europe_west.inc";
include "/etc/bind/acl-europe_nort.inc";
include "/etc/bind/acl-america_cari.inc";
include "/etc/bind/acl-america_cent.inc";
include "/etc/bind/acl-america_nort.inc";
include "/etc/bind/acl-america_sout.inc";
Next you create seperate views. One for europe, one for the americas and one for everyone else.
view "europe" {
  match-clients {
    europe_east;
    europe_nort;
    europe_sout;
    europe_west
  };
  zone "peen.net" {
    type master;
    file "/etc/bind/europe/db.peen.net";
  };
};
view "americas" {
  match-clients {
    america_cari;
    america_nort;
    america_sout;
    america_cent
  };
  zone "peen.net" {
    type master;
    file "/etc/bind/americas/db.peen.net";
  };
};
view "others" {
  match-clients { any; };
  zone "peen.net" {
    type master;
    file "/etc/bind/others/db.peen.net";
  };
};
Reload Bind and see what happens!  
peen:~# rndc reload
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question