Qual é a diferença entre o nome do computador (hostname) e nome de domínio?

There is often confusion about what is a host name and what is a domain name.

A domain name is the name that is purchased from a registrar. It will be something like ictea.com or ictea.net. Note that there is no www at the beginning of a domain name. A domain name can be subdivided into sub-domains - for example www.ictea.com. Once you own a domain, there is no reasonable limit to the number (or names) of the sub-domains you can create. A sub-domain can be allocated to a host machine - for example a PC. In fact many sub-domains can be allocated to the same host machine. The way sub-domains are allocated to a host machine is to create a record in the DNS (Domain Name Servers) that records the sub-domain name and the IP address of the host machine. Any requests for a sub-domain (e.g. www.ictea.com) are converted to an IP address by DNS and the IP address is used to route the request through the network until it reaches the host machine.

In the early years of the Internet, each sub-domain would have a unique IP address so it was common for a host machine to have only one sub domain name. Nowadays, the common practice is to have many sub-domains with the same IP address. It is also common for the domain name to be converted to the IP address of the host machine that runs the www sub domain.

A host name is the unique name of a machine. When the host operating system is set up it is given a name. This name may reflect the prime use of the machine. For example, a host machine that converts host names to IP addresses using DNS may be called dns1.ictea.com and a host machine that is a web server may be called www.ictea.com. When we need to find the host name from an IP address we send a request to the host using its IP address. The host will respond with its host name.

IP address to Country

IP addresses are allocated by regional organisations. Therefore it is relatively easy to work out the country in which an IP is likely to reside. When an IP is allocated to a company they are expected to be used in the country the organisation resides. But, there is nothing to stop a company allocating an IP to a machine in another country. For example. A company is allocated a range of IP addresses X.Y.Z.0 to X.Y.Z.255 for use in England. This company has a private network with a branch office in New York. So, it uses most of the IP address in England but uses some of them in the States. So, we cannot guarantee that the country is 100% correct when converting an IP address, but we would expect it to be correct at least 90% of the time.

VOLTAR

  • 7 Utilizadores acharam útil
Esta resposta foi útil?

Artigos Relacionados

O que é um domínio Internet?

Domínio é um nome que serve para localizar e identificar conjuntos de computadores na internet....

O que é uma mídia social?

As "ferramentas de mídias sociais" são sistemas projetados para possibilitar a interação social...

O que é DNS?

O Domain Name System ( DNS ) é um sistema de gerenciamento de nomes hierárquico e distribuído...

O que é computação em nuvem?

O conceito de computação em nuvem (em inglês, cloud computing) refere-se à utilização da...

O que é o protocolo de Internet IPv6?

IPv6 é a versão mais atual do Protocolo de Internet. Originalmente oficializada em 6 de junho de...

Powered by WHMCompleteSolution