Networking Forums

Networking Forums > Computer Networking > Linux Networking > Help needed regarding DNS server query

Reply
Thread Tools Display Modes

Help needed regarding DNS server query

 
 
Rajat
Guest
Posts: n/a

 
      08-10-2004, 04:25 AM
Dear All,
I want to know about DNS server queries, and what are all information
we can get it from a DNS server. Actually I am intrested in finding
the region of given IP address.

What I need to do now is to identify the given IP address is from
which country.
For This I need to determine the IP ranges allotted be country as well
as the domain extensions (say .co.in for India). Then I will keep this
information in a table.
So that against a given IP address I can search the table, and can
identify it country and region.

So now, I want to know from where I can get this information about IP
address ranges and domain extenstion, to store in table. Do you have
any idea.

Waiting for some +ve responses.
 
Reply With Quote
 
 
 
 
Davide Bianchi
Guest
Posts: n/a

 
      08-10-2004, 05:23 AM
On 2004-08-10, Rajat <(E-Mail Removed)> wrote:
> What I need to do now is to identify the given IP address is from
> which country.


There was a rough table somewhere, I think that you can hit google
and find something, but basically there is _no_ guarantee that an IP
is coming from a specific country.

Davide

--
Surprise due today. Also the rent.
 
Reply With Quote
 
Juha Laiho
Guest
Posts: n/a

 
      08-10-2004, 04:27 PM
(E-Mail Removed) (Rajat) said:
>I want to know about DNS server queries, and what are all information
>we can get it from a DNS server. Actually I am intrested in finding
>the region of given IP address.


I used to work for a multinational company that has a class B (64k
addresses) address block (and then some). This class B block was
of course registered to the HQ location - but addresses from within
that range were used everywhere within the company (Europe, Americas,
Asia-Pacific). Name lookups for the addresses returned just names
ending with the companys global .com domain name. Earlier, the
subdomains within the company top-level domain did somewhat indicated
the whereabouts of a given address, but later even that information
was removed.

Nowadays, I'd expect that most of the company internal addresses
(workstations and such) are private, and f.ex. a web server visited
by user of one of these machines would only show the company proxy
address.
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
 
Reply With Quote
 
Franklin M. Siler
Guest
Posts: n/a

 
      08-11-2004, 05:02 AM
Rajat wrote:

> Dear All,
> I want to know about DNS server queries, and what are all information
> we can get it from a DNS server. Actually I am intrested in finding
> the region of given IP address.
>
> What I need to do now is to identify the given IP address is from
> which country.
> For This I need to determine the IP ranges allotted be country as well
> as the domain extensions (say .co.in for India). Then I will keep this
> information in a table.
> So that against a given IP address I can search the table, and can
> identify it country and region.
>
> So now, I want to know from where I can get this information about IP
> address ranges and domain extenstion, to store in table. Do you have
> any idea.
>

The whois database does part of what you want, but as mentioned in the
preceding posts there isn't a sure way to get determine geographic origin.

--
Franklin M. Siler UIUC: Undergraduate in Electrical Engineering
Marching Illini Trumpets, Basketball Band Staff, ACM SigMation
http://umgawa.bands.uiuc.edu/~fsiler/
 
Reply With Quote
 
Rajat
Guest
Posts: n/a

 
      08-11-2004, 02:24 PM
Ya I wanna go for whois server lookup option. I have checked it as,
whois <Host_IP_address>
It is providing the relevent information.
So now I want to implement same kind of service, Can you tell me about
the query packet format and response format, so that I can query the
whois server and parse the response to get the relevent information.

"Franklin M. Siler" <(E-Mail Removed)> wrote in message news:<cfc98s$gpv$(E-Mail Removed)>...
> Rajat wrote:
>
> > Dear All,
> > I want to know about DNS server queries, and what are all information
> > we can get it from a DNS server. Actually I am intrested in finding
> > the region of given IP address.
> >
> > What I need to do now is to identify the given IP address is from
> > which country.
> > For This I need to determine the IP ranges allotted be country as well
> > as the domain extensions (say .co.in for India). Then I will keep this
> > information in a table.
> > So that against a given IP address I can search the table, and can
> > identify it country and region.
> >
> > So now, I want to know from where I can get this information about IP
> > address ranges and domain extenstion, to store in table. Do you have
> > any idea.
> >

> The whois database does part of what you want, but as mentioned in the
> preceding posts there isn't a sure way to get determine geographic origin.

 
Reply With Quote
 
Ken
Guest
Posts: n/a

 
      08-12-2004, 02:39 AM
On 11 Aug 2004 07:24:38 -0700, (E-Mail Removed) (Rajat) wrote:

>So now I want to implement same kind of service, Can you tell me about
>the query packet format and response format, so that I can query the
>whois server and parse the response to get the relevent information.


http://www.rfc-editor.org/rfc/rfc2167.txt

--
Ken
http://www.ke9nr.net/
 
Reply With Quote
 
Rajat
Guest
Posts: n/a

 
      08-16-2004, 11:10 AM
Ken <ng3122@ke9nr.#nospam#.net> wrote in message news:<(E-Mail Removed)>. ..
> On 11 Aug 2004 07:24:38 -0700, (E-Mail Removed) (Rajat) wrote:
>
> >So now I want to implement same kind of service, Can you tell me about
> >the query packet format and response format, so that I can query the
> >whois server and parse the response to get the relevent information.

>
> http://www.rfc-editor.org/rfc/rfc2167.txt


hi,
I made some queries to the whois servers, but whatever response I got
is in human readable text formate. More over the response format of
each server is of different form. So I was not able to parse it and
get the relevent information.

I searched the net, that if we can get the response in proper xml
format. So that I can easily parse it. I got one mail in a message
archive, in that it was stated that if we sand whois query in XML
format then will get the response in XML format only. Other wise
simple text response will be returned.

Does any body know that how we can query the whois srevr in xml
format??
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple mail "server" program needed - advice needed please Andrew Sayers Home Networking 12 08-24-2006 04:03 PM
Linux FTP server authentication query arvindsd@yahoo.com Linux Networking 0 03-01-2005 08:29 AM
Win Server 2K3 and modem query Stan Windows Networking 0 02-14-2005 08:53 PM
# packets for first query with personal DNS server jab3 Linux Networking 0 09-22-2004 06:22 PM
network print server query. Dave T Home Networking 3 12-10-2003 09:03 PM



1 2 3 4 5 6 7 8 9 10 11