Improve company productivity with a Business Account.Sign Up

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 793
  • Last Modified:

how to find a computer on the internet

how a particular site/machine is traced on the internet
Certainly it involves the resolution of domain name to ip address but i require more clarification on

1.where does the domain name is resolved i.e. on which DNS server. does it traces path to the machine that contains a particular resource that is to be accessed.

1 Solution
dns is resolved by the primary dns server, which takes care of finding the dns->ip mapping if it doesn't already have it cached.  If you use nslookup it will tell you what dns server responded (that is prolly your primary)

as for the 'trace' part, i'm assuming you are talking about traceroute.  If you are asking how a packet gets from one computer to another, you're in a much bigger pond - go read a book on ip.  Anyway, all packets have a ttl (a maximum number of routers the packet can go through before it 'dies').  Once the ttl reaches zero, an ICMP error message is sent back to the original sender.  So, traceroute tricks the system by setting the ttl to zero to begin with, then records where the ICMP error comes from.  Then it ups the ttl to one, then 2, 3, 4, 5 and so on - until it recieves an error reply from the destination.

assume (in the diagram below) that A-F are all computers, your computer being A, and the destination being F.  We'll assume that the ip addresses of these computers are all on the same subnet, with sequential ip addresses ( ~
now, we know that:
nslookup A will give us, etc, etc

A         B         C         D        E       F

Now, normally, you don't care about B-E (only about F).
To find out about B-E, we use traceroute.
So, traceroute sends out a packet with a ttl of 1 towards F.
Now, B recieves the packet, decreases the ttl to 0, realizes the packet's life expired, and sends an error message back to A.
Next, A sends out a packet with a ttl of 2.  B recieves the packet, decrements the ttl to 1, and sends it further.  C recieves the packet, the ttl gets dropped to 0, and this time C sends back the error.
Then increase to 3 and D replies with the error.
Then 4 and E responds.
Then 5 and F responds.
All traceroute has to do is print out where the error messages come from (where the packet timed out) and BOOM!, you have now traced between two computers.

DNS works roughly like this... A client machine requests resolution (e.g. from their ISP's dns servers - if there is a valid (non-expired) entry in their cache from a prior similar request then that's returned. If not, the dns server will attempt to locate a definitive nameserver for the domain and query that. It works from right to left. So if its a .com address the ISP dns queries the .com root server for the NS of the domain, e.g. . Then with that info it queries the primary nameserver, e.g. for actual resolution of the original query. That info will then be cached and updated based on info in the query packet.

The rest is just IP routing. Your ISP's routers must either know the route (next hop) to the subnet on which the target ip address lives ( or will simply send to a default route hoping that the router concerned may have a path. Routers communicate paths between themselves using protocols such as RIP. This is a whole science in its own right and the above is just a very brief summary.

i hav some clarification on the same question

consider a case i have DNS mapped to a particular ip (ie i have registered with a web hoster) and i need to change the DNS to some other IP (ie., i intend to have my own server ) is that i should configure my webserver alone with that DNS or how is it to be done(how will the primary dns server know that i have mapped my DNS to a new ip)
and what would happen if i have the same DNS with 2 ips (will the visitor who is located near the server will be able access the particular ip)

This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept packratt_jk's comment as answer.
Please leave any comments here within the next seven days.


EE Cleanup Volunteer
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now