- Joined
- Jan 15, 2006
- Messages
- 4,774
This is to expand on the Domain Name Service (DNS) I was talking about via PM for someone on here. Look at DNS like directory assistance on a phone but for IP addresses instead.
Let’s take into the consideration a domain name like this: “mail.yahoo.com”
First, after the com, there is an assumed dot “.” So in all reality to a computer it looks like this: “mail.yahoo.com.”
That extra “.” (dot) stands for “root”, but again no one ever types in so internet browsers automatically assume it is there and appends it automatically when it parses the address bar.
When you type this address in, the computer parses the address field in which you just typed “mail.yaoo.com” and then converts it to “mail.yahoo.com.” as stated previously. It reads the address from right to left and tokenizes the address where the “.” (dots) reside. The computer breaks it down like this:
Root
Com
Yahoo
Mail
Now, there are different DNS servers for each of the different tokens listed above. The first one it renders and resolves is Root. There are Root DNS servers on the Internet which is the first stop. Your computer asks the Root DNS server where the closest and most available Com DNS server is and hands you back the IP address of the closest Com server. At that point it becomes a round robin so to speak as it does the same task all the way down the line until there is only one name left to resolve. So next , it now has the IP of the Com DNS server and your computer now asks the Com DNS server for the Yahoo DNS server’s IP address. The computer realizes that there is only one name left on the stack of tokenized names above which is “Mail”. Since there is only one more name in that tokenized list, it doesn’t ask for another DNS service, it actually asks the Yahoo DNS server to translate the “Mail” into an IP address. Once your computer receives the IP address which happens to be 69.147.112.160. Your computer then tries to contact that address and ask it for a web page which would render the mail.yahoo.com web page.
There are other slightly advanced portions of DNS like recursion. This is not something that everyone needs to know, but nevertheless it is still a portion of DNS resolve. Let me prefix by stating that no Root or second level DNS (example: "com", "net", "org") support recursion. Only at the third level (example "Yahoo") is recursion supported, but still would have to be "turned on" on the thrid level DNS server itself. What is recursion? Say you have a 5 token DNS address like "server1.mail.yahoo.com".
Tokenized looks like this:
Root
Com
Yahoo
Mail
Server1
If recursion is turned on for the yahoo DNS server, instead of it handing back an address of the "Mail" DNS server, it will look up that zone for you, and if there is a separate DNS server for that sub domain, it will ask for the address of "Server1". It will then hand you back the final address of Server1 instead of handing your computer the Mail DNS server address and making your computer ask the Mail DNS server for Server1's IP. Recursion essentially cuts out a step that your computer would normally have to deal with by doing that next step itself and handing your computer the final product which is the IP address you requested.
I can expand further if people want to learn about specific DNS record types like MX records, aliases, etc.
Let’s take into the consideration a domain name like this: “mail.yahoo.com”
First, after the com, there is an assumed dot “.” So in all reality to a computer it looks like this: “mail.yahoo.com.”
That extra “.” (dot) stands for “root”, but again no one ever types in so internet browsers automatically assume it is there and appends it automatically when it parses the address bar.
When you type this address in, the computer parses the address field in which you just typed “mail.yaoo.com” and then converts it to “mail.yahoo.com.” as stated previously. It reads the address from right to left and tokenizes the address where the “.” (dots) reside. The computer breaks it down like this:
Root
Com
Yahoo
Now, there are different DNS servers for each of the different tokens listed above. The first one it renders and resolves is Root. There are Root DNS servers on the Internet which is the first stop. Your computer asks the Root DNS server where the closest and most available Com DNS server is and hands you back the IP address of the closest Com server. At that point it becomes a round robin so to speak as it does the same task all the way down the line until there is only one name left to resolve. So next , it now has the IP of the Com DNS server and your computer now asks the Com DNS server for the Yahoo DNS server’s IP address. The computer realizes that there is only one name left on the stack of tokenized names above which is “Mail”. Since there is only one more name in that tokenized list, it doesn’t ask for another DNS service, it actually asks the Yahoo DNS server to translate the “Mail” into an IP address. Once your computer receives the IP address which happens to be 69.147.112.160. Your computer then tries to contact that address and ask it for a web page which would render the mail.yahoo.com web page.
There are other slightly advanced portions of DNS like recursion. This is not something that everyone needs to know, but nevertheless it is still a portion of DNS resolve. Let me prefix by stating that no Root or second level DNS (example: "com", "net", "org") support recursion. Only at the third level (example "Yahoo") is recursion supported, but still would have to be "turned on" on the thrid level DNS server itself. What is recursion? Say you have a 5 token DNS address like "server1.mail.yahoo.com".
Tokenized looks like this:
Root
Com
Yahoo
Server1
If recursion is turned on for the yahoo DNS server, instead of it handing back an address of the "Mail" DNS server, it will look up that zone for you, and if there is a separate DNS server for that sub domain, it will ask for the address of "Server1". It will then hand you back the final address of Server1 instead of handing your computer the Mail DNS server address and making your computer ask the Mail DNS server for Server1's IP. Recursion essentially cuts out a step that your computer would normally have to deal with by doing that next step itself and handing your computer the final product which is the IP address you requested.
I can expand further if people want to learn about specific DNS record types like MX records, aliases, etc.