Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Server Name Definition

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
When trying to access a remote server in a WAN environment by using its server name, it is sometimes necessary to update the LMHOST file and provide the IP Address/server name. This is usually necessary if the client is of different segment as the server:

e.g.:
120.19.45.1 APSERVER001

Is there a different means to do this by providing the DNS instead of IP address? I tried changing the IP address with the DNS but it doesn't seem to work.

e.g.
testserver.dev.com APSERVER001

Appreciate any advise... Thanks.
 
edit the hosts file instead. should be in the same directory as the lmhost file.
enter ip address followed by hostname.

Nostradamus
 
thanks for the reply. however, what i am trying to accomplish is to make a server's hostname recognizable by the client using its DNS only, not with its IP address.

we are trying to avoid using the IP address as much as possible because when the server goes down, we can not afford going into each individual PC and update the IP address as defined in the workstation's lmhost file.. we are hoping that by using the server's DNS we can avoid this task since the changes needs to be done only to the contingency server and we don't have to worry about the client PCs.

any other ideas?... thanks..

 
excuse me, pls let me correct the first paragraph to avoid confusion...

"thanks for the reply. however, what i am trying to accomplish is to make a server's COMPUTERNAME recognizable by the client using its DNS only, not with its IP address." :)
 
If you have WINS and DNS then the WINS name can be looked up on the DNS table. It's down to configuration therein. (enable WINS lookup via DNS).
 
Sorry, backwards - if you are using both DNS and WINS and they are configured properly, DNS will consult WINS if it cannot make the resolution. DNS will truncate the domain information from the hostname, assume the remaining is a NetBios name, and check with the WINS server.

You can provide multiple names in the HOSTS file, such as

120.19.45.1 APSERVER001 APSERVER001.dev.com

Just separate them with a space.

If you aren't using DNS or WINS (they are similar but different), WHY NOT?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top