What is the difference between hostname and nameserver?

Philippe Gaucher

Well-known member
Collaborate
Registered
Joined
Jul 27, 2016
Messages
184
Points
18
What is the difference between hostname and nameserver? can you guys explain me?
It would be great if you give me some examples to clear this my question.

Thanks in advance.
Philippe
 

Collabora

Well-known member
Registered
Joined
Jan 24, 2017
Messages
123
Points
18
Hostname is the same as computer name. Sometimes its call machine name. Here is how to find your computer name in Windows and Mac:

https://support.vitalsource.com/hc/en-us/articles/201965227-How-to-locate-your-machine-name

Or you can type "hostname" at the command prompt

"Nameserver" is a DNS server -- this is where hostnames are associated with IP addresses. For example: In the context of web hosting, a nameserver points to a DNS server that serves a specific domain. In other words, the hostnames listed in a nameserver are other DNS servers, and the hostnames listed in the DNS server are your domain names
 

radwebhosting

Well-known member
Hosting Provider
Registered
Joined
Jan 14, 2016
Messages
316
Points
28
Nameservers require Glue Records, while a hostname can simply rely on A records.
 

Philippe Gaucher

Well-known member
Collaborate
Registered
Joined
Jul 27, 2016
Messages
184
Points
18
"Nameserver" is a DNS server -- this is where hostnames are associated with IP addresses
I don't understand this

Normally I set hostname that associate with my IP address as follows

hostname --> IP address

and I need to setup reverse DNS too.

IP address resolve to my domain

while nameservers are

ns1.mydomain.com --- A --> IP address
ns2.mydomain.com --- A --> IP address


Nameservers require Glue Records, while a hostname can simply rely on A records.
What are Glue Records?
 

Collabora

Well-known member
Registered
Joined
Jan 24, 2017
Messages
123
Points
18
I don't understand this

Normally I set hostname that associate with my IP address as follows

hostname --> IP address

and I need to setup reverse DNS too.

IP address resolve to my domain

while nameservers are

ns1.mydomain.com --- A --> IP address
ns2.mydomain.com --- A --> IP address
That is correct. ns1.mydomain.com is a hostname. The server that contains the file with all your hostname -- > IP entries (known as a zone file) is a nameserver, aka DNS server

What are Glue Records?
Don't worry about that until you understand the other stuff ;)
 

optimalgeek

Member
Registered
Joined
Mar 15, 2017
Messages
33
Points
0
Hostname is the name of the server. It has a A record on the server itself. It is configured in /etc/sysconfig/network file. Like In a tv show a host who control the TV show and he explain everything. He has a name. :p So just like that hostname on of the system is their. Nameserver are used to point the domain names towards a server. like : ns1.domain.com and ns2.domain.com nameserver can be private as well. hostname cant be private. Its assigned by the admin of the server.
 
Older Threads
Recommended Threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top