APNIC Home APNIC Home
Info & FAQ |  Resource services |  Training |  Meetings |  Membership |  Documents |  Whois & Search |  Internet community

You're here:  Home  Mailing Lists pacnog 


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pacnog] Ways to direct traffic based on geographic location



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

On Jul 9, 2006, at 11:47 AM, Alo Anesi wrote:

All-

I've got a customer who wants to mirror their website off-island, and I was wondering if there was a good way to direct requests to that site by geographic location. For example, for customers on- island I would like them to hit the local server. All other's should go to the remote location.


Is this a dynamic web content or static ? or semi-static (i.e, database backend, and a fixed update period. ? static and semi- static sites are easy.. the hard ones are the dynamic ones.


Now, this is a specific situation, but does anyone know of a more general way to route packets based on the source address and rewrite the destination address?


We use dns-views to re-direct web content over to different servers based on where it's originating from. In case of it coming through the IX, we give them a local IP. If the request is coming from an IP not present at the IX, we give them an overseas IP address.

And of course, the NS server are present on both sides of the satellite, so people on other end of the satellite don't have to traverse the satellite for DNS queries.

The list of IPs is dynamically generated every half hour by doing diffs of routes we are seeing at the local IX.


           -- gaurab


/////////////////////////////////////////////////////+9779851038080
gaurab at lahai dot com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFEsxnDSo7fU26F3X0RArmnAKCTOVkLPiwYenGmMHW9zP082y+h3gCgk+2b
6nRBApVtTuPB0Zhs9oru7oc=
=zWZK
-----END PGP SIGNATURE-----