Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Hi Puru,
One another way is also possible to get the location of a given IP address. We can query the "whois server" and get the information in its response.
Do you know the query format and how to parse the response at client side to get the relevent information.
ya exactly........but how can I get this information at IP. I mean can you tell me the query packet format and response format, as well as how to parse the received response(Usage of whois protocol).
ya that is okay....actually I want to implement the same kind of service, which can be able to provide the location of a given IP address. So for that I need to query the whois server, thats why I want to know abut the query and response packet structures etc.
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??
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.