Pinging with various IP result

0

I would like to know why when pinging a same domain name, it will produce a different IP address when adding a www. Example:

example.com         1.1.1.1
www.example.com     1.1.1.2
blog.example.com    1.1.1.3

I understand that www and blog are subdomains, so does it mean that the 3 that were shown above are hosted in 3 different location (IP address) and which is supposed to be the official IP address ? Is it the hosting IP addresses contain 3 duplicate copies of a website or it can be all from a same IP a same IP address ?

IT-Learner

Posted 2016-12-26T01:47:13.103

Reputation: 31

2Multi dns entries for root, common with large sites. – cengbrecht – 2016-12-26T01:48:53.700

"I understand that www and blog are subdomains..." No, those are server names. – Ron Maupin – 2016-12-26T01:49:12.590

@RonMaupin Ron, you wrote ""I understand that www and blog are subdomains..." No" <-- Most likelyYou're wrong Ron, you should check things before you tell somebody they're wrong, as well as providing reasons. None of which you have done. See http://stackoverflow.com/questions/20680521/is-www-a-subdomain The top answer with 23 upvotes says "is 'www' a normal sub-domain? Yes, it is. From the point of view of DNSs it is a totally normal subdomain." And nobody has disagreed. Furthermore http://superuser.com/questions/215225/is-the-www-in-web-addresses-a-subdomain " the www. subdomain".

– barlop – 2016-12-26T02:00:10.817

@RonMaupin also, there is a comment saying that www is a subdomain and also a hostname, and not every subdomain is a hostname, but www is. So www is both a hostname and a subdomain. seems to be what is said, if you research it a bit. – barlop – 2016-12-26T02:05:23.517

To IT-Learner.. Having not set up a system with domains, I don't know the complex answer, but I guess the simple answer might be that a domain points to an IP.. A "subdomain" could be the same IP or a different IP. I guess one could ask why call it a subdomain.. maybe when they came up with the term, it was envisaged that it'd be a part of a website or perhaps a computer within the network that the main domain is.. but perhaps it doesn't necessarily have to be. And perhaps the only thing the subdomain need share with the domain is the name. I don't know though. – barlop – 2016-12-26T02:11:44.247

@barlop, there are many examples of this on the Internet, including [sf]. See: https://serverfault.com/questions/269838/what-is-the-difference-between-a-hostname-and-a-fully-qualified-domain-name.

– Ron Maupin – 2016-12-26T02:17:12.650

@RonMaupin Interesting. I think serverfault on that question trumps stackoverflow and superuser, so stackoverflow and superuser are wrong and nobody corrected it, that's unusual that superuser or stackoverflow have wrong information in the highest voted answers and nobody corrects it, but maybe this is a case of it. – barlop – 2016-12-26T02:23:26.980

RonMaupin - Youtube from Godaddy explain on subdomain ([link]https://www.youtube.com/watch?v=Ae00NNuB8CE%5Blink]) Whether www is subdomain or not may be secondary to me.

I would like to know which should be the actual IP that host the information www.example.com or example.com if both resolved to a different IP address ?

@barlop - Thank you for clarifying.

– IT-Learner – 2016-12-26T03:06:18.210

1

This question and answer thread explains what hostnames, subdomains and the like are. Long story short, each example you give—example.com, www.example.com and www.example.com—are 100% different hostanames. They are all generated by whoever owns example.com and can point to any IP address they wish. In some cases all of those addresses could resolve to the same IP address or different ones. The choice is based on need, desire and skill on the part of the system architect.

– JakeGould – 2016-12-26T03:37:08.570

JakeGould - Thank you.. i probably have a better understanding. So is to correct to say the if the domain and sub domain point to a different hosting IP addresses, there is a possibility that these 2 Hosting IP address will contain data (files etc) belonging to owner ? – IT-Learner – 2016-12-26T09:44:48.923

@IT-Learner what do you mean by "belonging to owner".. The way I see it, when dealing with computers, strictly with computers, there isn't really a concept of an "owner"(apart from maybe if an operating system has owner as a technical term like user account owning a file). If there is an owner in the capitalistic sense, then you're talking about some politics behind the computers. Maybe somebody borrowed a computer from their neighbour, so their neighbour owns it. What do you mean by "owner" and bear in mind that that doesn't sound like a technical question. – barlop – 2016-12-27T15:30:26.483

@IT-Learner With different IPs, They're likely different computers.. In which case who is to say one computer is more legitimate than the other one?! Though you could say that the main one is the one with teh main index page so the IP of example.com rather than abc.example.com. And if they both abc.example.com and example.com both have the same index page then again who is to say who is more legitimate. – barlop – 2016-12-27T15:32:42.173

No answers