For the past two days I've been reading up on domains and the like because I'll be setting up a website on a VPS. However, I keep getting conflicting answers from stackoverflow, youtube and various other sites (a quick google image search will show this which is extremely frustrating).
For the url:https://www.example.com
- Is
www
the subdomain or the hostname? What's the differences between the two and how can I recognize them when I'm just given a URL? - Which of these are the domain / domain name?
example
orexample.com
orwww.example.com
? What exactly makes a domain name?
hostname
is a name that can refer tosubdomain
ordomain
. Adomain
is typically a parent that asubdomain
is but both are hostnames.google
is meaningless..com
is a top level domain.google.com
is a domain name and a hostname.www.google.com
is a subdomain ofgoogle.com
and a hostname as well.