LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-12-2009, 11:43 PM   #1
Ammad
Member
 
Registered: Apr 2004
Distribution: redhat 9.0, fc4, redhat as 4
Posts: 517

Rep: Reputation: 31
DNS or loadbalancer


Dear all,


When i visits to msn.com, it redirects me to countryName.msn.com. when i am in UK, my browsers hits to http://uk.msn.com/ and when i am in US it redirects url to www.msn.com (USA).

I want to know, how this happens, either its related to DNS or URL redirector?


thanks.
 
Old 12-13-2009, 12:42 AM   #2
beatshoes
LQ Newbie
 
Registered: Jul 2008
Posts: 8

Rep: Reputation: 0
I would hazard a guess and say IP based redirection at the web server, not dns.
given that your isp has a unique block of IP's and that block has a known geographical location.

your ip is sent to the web server when you request its junk.

nslookup and ping of msn.com give me msn.com, not msn.com.au
that said, I am in australia, I dont get that redirection anyway.

also, I didnt think dns was that clever.
 
Old 12-13-2009, 01:03 AM   #3
Ammad
Member
 
Registered: Apr 2004
Distribution: redhat 9.0, fc4, redhat as 4
Posts: 517

Original Poster
Rep: Reputation: 31
if its by Webserver, then how can i implement this ??
i have read in Microsoft network infrastructure book,DNS response to the qurey based on requesters IP Address.
 
Old 12-13-2009, 03:16 AM   #4
beatshoes
LQ Newbie
 
Registered: Jul 2008
Posts: 8

Rep: Reputation: 0
in order to implement something like that yourself..

you can make use of a geolocation service.. which cost money (google geolocation)
write a little php script which gets the IP from the request and matches it to the right location, then sends an html redirect header.

or probably a bit of a kludge but, when I tracert my IP address, it's last hop (me) is xxx-xxx-xxx-xxx.dyn.isp.com.au
again, with a script, you could tracert the users IP, and then with regex or some other sort of text matching doodad, extract the country code of the last hop (in my case .au)
and then redirect to the appropriate location.

that said, today is the first I have looked at geolocation, there is likely a much better way to do this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Loadbalancer: telnetd: ttloop: peer died: EOF Muddoll Linux - Enterprise 0 11-18-2008 05:10 AM
i want make DNS server on fedora 8 opreting system plz tell me what is file use DNS nitin gupta Linux - Newbie 2 02-20-2008 06:01 PM
Win2k3 DNS + PFsense DNS Forwarder = No internal DNS resolution Panopticon Linux - Networking 1 11-19-2007 10:59 PM
LXer: Apache: Creating A Session-Aware Loadbalancer Using mod_proxy_balancer (Debian Etch) LXer Syndicated Linux News 0 05-31-2007 09:01 PM
TEMP_FAILURE: DNS Error: Timeout while contacting DNS servers when receiving emails tonysutherland Linux - Networking 2 02-10-2006 10:04 AM


All times are GMT -5. The time now is 05:34 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration