DNS is basically the address book of the internet. When you type www.duckduckgo.com into your browser, the computer needs to figure out how to get...
For further actions, you may consider blocking this person and/or reporting abuse
Hey this is kind of awesome thanks for writing this. Question about CNAME: is the CNAME yet another shortcut to the ip? In other words, if I type in the CNAME into the browser, what's the process of resolving to one of those IPs look like. Does is resemble something like this data structure?
Hi Eugene, exactly. A CNAME is basically a shortcut or an alias to an A record. A CNAME can't point directly to an IP address, it always points to another name.
So, you can have any number of CNAMEs that point to any of your A records (or names) but not directly to an IP. A records point a name to an IP.
Thanks a lot. Could you please explain the last line of the article "this won't always work because you can have multiple websites running on the same server at the same IP address". If you can please explain this I would be very grateful to you.
Sure, I can have multiple CNAMES pointing to the same IP address, for example:
mysite.com -> 192.168.1.30
othersite.com -> 192.168.1.30
thirdsite.org -> 192.168.1.30
When I type 192.168.1.30 into my browser, the server won't know which website I'm asking for, so it will return either the default website for that server, or an error.
Awesome explanation! This is the kind of article we need to read while learning network or dev. Thank you!
Glad you liked it!
great explanation. Short, concise and very clear. Thanks !