Understanding the purpose of hold Names

In TCP/IP based networks, the packets that are transmitted over the network contain the complying with IP addresses:

The IP address of the computer sending the packet

The IP attend to of the destination computer system intended to get the packet.

You are watching: Which mechanisms could you use to resolve a hostname into its associated ip address

The IP resolve information is offered to front the packet come the destination computer. The IP addresses the computers as such have to it is in both unique and also correct so that they have the right to be forwarded come the exactly destination.

IP addresses also contain the following important information:

Network address or ID

Host address or ID.

What is a host name then? A hold name is assigned come a computer to recognize a hold in a TCP/IP network. The organize name have the right to be described as being the alias that is assigned come a node, to determine it.

A couple of characteristics of hold names are noted below:

Host names are assigned to computer systems by administrators.

The hold name specified for a computer does not need to correspond to the home windows 2000 or home windows Server 2003 computer system name or NetBIOS computer name.


More than one host name deserve to be assigned to the same host.

The maximum length of a organize name is 255 characters.

The host name can consist of both alphabet characters and numeric characters.

A organize name deserve to be characterized in a number of ways. The much more common methods used are:

A nickname: This is one alias to an IP resolve which individuals deserve to assign and also utilize.

A domain name: This is a set structured name the adheres to web standards.

WinSock applications make use of the IP attend to of the organize name for a link to be established. Surname resolution is not required if the IP addresses are offered to develop connections. However, due to the fact that host surname are less complicated to remember than IP an address, the host name is generally used instead of the IP addresses. This is especially obvious with TCP/IP applications.

When the host name is used, and not the IP address, the hold name has to be resolved to an IP resolve for IP communication to occur. This is recognized as organize name resolution. A host name must complement to one IP attend to that is situated in a DNS server database, or in a hosts file.

Host surname Resolution in Windows

Each network needs a mechanism that deserve to resolve host names to IP addresses. Name resolution has to happen whenever the organize name is supplied to connect to a computer and not the IP addresses. For instance, as soon as a server name is offered to access a resource, the computer system resolves that name to an IP address. Hold name resolution resolves the host name come an IP address. This has to happen so that the IP attend to can be solved to the hardware deal with for TCP/IP based communication to occur.

With the arrival of windows 2000, came assistance for several various name resolution mechanisms:


Network broadcasts

NetBIOS surname cache

Active directory service

Network broadcasts and LMHOSTS documents were typically utilized in the earlier versions of windows NT. Windows web Naming business (WINS) is generally used in windows NT 4. Prior to Windows 2000, NetBIOS surname identified computer systems on the network. V the introduction of home windows 2000, came the advent of energetic Directory. Active Directory uses the Domain Name system (DNS) for name registration and also name resolution.

With the arrival of home windows Server 2003, DNS name resolution is supplied over NetBIOS surname resolution. The DNS client service handles name resolution. It first submits all surname resolution jobs to DNS. If DNS name resolution can not occur, the DNS customer service submits the name to NetBIOS.

The common methods used to resolve host names are noted below:

NetBIOS surname resolution: This is the procedure of mapping the NetBIOS surname of the computer to an IP address. Through NetBIOS, communication occurs in between NetBIOS hosts via surname discovery, surname registration, and name release.

HOSTS file: This is a text record that consists of the hold names come IP addresses mappings. The HOSTS record is stored locally.

DNS server: DNS resolves organize names and completely qualified domain surname (FQDNs) to IP addresses in TCP/IP networks. The DNS server manages a database of host name to IP deal with mappings. This is the primary technique used for surname resolution in windows Server 2003.

For DNS surname resolution, the mechanisms that deserve to be provided are:

The regional DNS client cache can be offered to perform a name lookup.

A DNS server query.

For NetBIOS surname resolution, the instrument that have the right to be used are:

The neighborhood NetBIOS name cache have the right to be used to perform a surname lookup.

WINS server query

NetBIOS broadcasts come query the local network.

The neighborhood LMHOSTS file can be used to do a name lookup

The hosts File

This is a text based document which contains host names come IP addresses mappings. TCP/IP applications largely use the HOSTS document when a organize name requirements to be mapped come an IP address. The document can likewise be offered resolve NetBIOS names. The HOSTS record is stored in your ar on a system, and also is located on every computer.

A couple of characteristics the the HOSTS document are:

Multiple hold names have the right to be assigned come the the same IP address.

Each entrance in the HOSTS record has an IP attend to that is linked with one or multiple organize names.

Host name localhost is an entry in the hosts file, by default.

All commonly used names have to be situated close come the start of the file.

The entries in the HOSTS document for windows 2000 operating systems are not case-sensitive.

The entries in the HOSTS record for Unix operating systems are case-sensitive.

How organize names are addressed with a hosts file

A user uses a host name to connect to a Winsock application.

The mechanism checks whether the host name is the exact same as the local organize name.

The name is addressed if the two names match.

The HOSTS document is parsed if the host name is no the same as the local organize name.

The host name is resolved to its connected IP addresses if the is found in the master file.

The IP attend to of the destination host is then solved to the hardware address.

If the location host is located on the local network, either of the complying with methods is provided to obtain the hardware address:

The IP attend to of the hold is transfer for that hardware address

If the location host is located on a far network, the hardware attend to of a router is acquired so that the request deserve to be routed.

In instances wherein the hold name cannot be solved to an IP attend to in the master file, and also this is the only hold name resolution method that is configured, an error article is returned to the user that initiated the request.

How hold names are fixed with a DNS server

When a user enters a host name or a completely qualified domain name (FQDN), organize name resolution is initially attempted through the master file.

If the host name can not be resolved to an IP address through the HOSTS record name resolution method, the DNS server is used.

The inquiry is sent to the DNS server to do a lookup that the name in that is database, to fix it to an IP address.

The DNS server resolves the hold name come IP address.

The hardware resolve is acquired next.

If the location host is situated on the local network, the hardware address is acquired from the ARP cache, or viabroadcasting the the IP address.

In instances wherein the DNS server does no respond come the early stage request, the DNS server is do the efforts again in ~ 1, 2, 2, and also 4 2nd intervals. If after every these make the efforts the DNS stops working to responds, and also no various other name resolution instrument exist, an error blog post is went back to the user that initiated the request.

The Recommended technique for Resolving organize Names come IP Addresses

You have the right to configure a variety of methods come resolve hold names to IP addresses. You have the right to specify the usage of a DNS server, surname resolution via the HOSTS file or v a DNS server, network broadcast, WINS server, and also through LMHOSTS. When you configure numerous mechanisms for host name resolution, girlfriend are basically providing a backup strategy for your name resolution process. Once one technique fails to solve the host name to IP address, another technique is used.

Only after every of the configured surname resolution mechanisms fail to productivity a hold name to IP address mapping, does the specific IP address need to be provided to service the request.

The recommended process for resolving organize names to IP addresses is shown below:

The user specifies a host name and not the associated IP resolve in the request.

Windows first determines even if it is the organize name provided is the identical name as the local organize name.

The name is addressed if the 2 names match.

The HOSTS record is parsed if the two names space not the same.

If the hold name exists in the hosts file, that is fixed to its IP address.

When the hold name does no exist in the hosts file, the request is sent out to the DNS server for name resolution.

The host name is fixed if the DNS server has the organize name to IP deal with mapping in the database.

If the DNS server does no respond to the initial request for surname resolution, the inquiry is check again in ~ 1, 2, 2, and also 4 2nd intervals.

When the DNS server cannot fix the hold name right into an IP address, the hold next checks whether the hold name exist in its neighborhood NetBIOS surname cache.

The organize name is solved to one IP resolve if the is located in the regional NetBIOS name cache.

If the host name cannot be located in the NetBIOS name cache, the NetBIOS surname server is contacted for name resolution.

When the NetBIOS surname server cannot resolve the organize name come an IP address, the hold then transmits 3 broadcast message on the neighborhood network.

Name resolution takes place if the host name exist on the neighborhood network.

When the hold name cannot be addressed through broadcast on the local network, the next check that occurs is the parsing that the neighborhood LMHOSTS file.

The host name is resolved right into an IP resolve if the is situated in the neighborhood LMHOSTS file.

See more: Contempor A Fold-Thrust Belt Is Associated With, Evolution And Dynamics Of A Fold

If the organize name cannot resolved right into an IP deal with after every the above methods have been attempted, the user has to carry out the IP address.