Where do i live DNS?

Posts   
 
    
wayne avatar
wayne
User
Posts: 611
Joined: 07-Apr-2004
# Posted on: 06-Apr-2005 16:59:58   

Hi all

I have a situation where i need to to know where in the world (Country,City) the person lives that is accessing my web app.

Now this might sound like an overprotective security issue but the fact is that, it has todo with marketing. One of my clients want to redirect an incoming visitor to one of his sites which ever is closest to the visitor...Now how do i go about doing this? Ask the visitor? I suggested that and i was told that they don't want that and that it must be automated.

Someone suggested that i go and investigate if i can get this type of info from a DNS server by using the visitors IP as lookup key. Now DNS's and protocols are very new stuff to me - never had to work with it before - so i am really gonna need some help.

I need something like this http://www.geobytes.com/IpLocator.htm?GetLocation

Hope somebody has some idea what i can do.

Thanks Wayne

JimFoye avatar
JimFoye
User
Posts: 656
Joined: 22-Jun-2004
# Posted on: 06-Apr-2005 18:10:57   

A while back I looked into this and found several vendors that sell something for developers to do exactly this. I don't have the URLs anymore but a quick search on Google should turn them up. Hope this helps.

wayne avatar
wayne
User
Posts: 611
Joined: 07-Apr-2004
# Posted on: 07-Apr-2005 13:11:35   

I found something that can help me...just thought that i would share the info. simple_smile

http://www.codeproject.com/csharp/Global_Whois_class.asp

Use the following WhoIs server "whois.arin.net" instead of the server supplied in the example.

Also see: http://www.whoisview.com/articles/ipwhois.php