Monday 1 April 2019

networking - Difference between host name and domain name


What's the difference between Hostname and Domain name? especially in regards to NIC


Could someone please elaborate with examples as this concept is a little confusing



Answer




  • hostname is the name given to the end-point (the machine in question)

    • and will be used to identify it over DNS if that is configured



  • domain is the name given to the 'network'

    • it will be required to reach the network from an external point (like the Internet)




It is usually written in the form,



hostname.domain.com -- for example



If you are in (say) a college campus named called 'The-University',
and its domain is called 'theuniversity.org',
a machine on the campus network called 'mymachine' would be addressed as, 'mymachine.theuniversity.org'.


If you were trying to connect to this machine from your home network,
you would address it with that full name.
The domain part would reach you to the campus network
and the hostname would let you reach the exact machine in the campus.
I am avoiding the details of IP Addressing and gateways here.


For this reason, while accessing the machine from another machine within the campus
may work with just the hostname (mymachine) without the use of the domain name.


To taken an analogy, if you are in the same city, the street name suffices.
But, to address a place in another city, you would usually add the city name after the street.




For a more detailed reading
the Wikipedia page on Domain Name Service could be a good starting place.





  • When configuring DNS, the DNS Server Name would be required.
    This is a hostname (the server is an addressable machine).

  • An IP address cannot point to a Domain Name,
    It can however point to a domain name server (DNS).


No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...