[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 557
  • Last Modified:

How to add a hostname alias

We have a server application that we install on our customers' networks. It uses the Winsock2 API to listen for and respond to requests from a client application. Is there a way (programmatically or manually) to add a hostname alias for the computer that is running the server application? Then if the server application is moved to another machine the alias hostname can be moved with it and the client software configuration wouldn't need to be touched. The server application runs on Win XP and Win 2003 Server.
0
andrewzim
Asked:
andrewzim
  • 2
  • 2
  • 2
1 Solution
 
SilentezCommented:
You can try to add static alias for server to DNS server in customers' networks.
BTW, why it's just not use netbios name resolving?
0
 
andrewzimAuthor Commented:
Most of the networks don't have a DNS server, so they're already using netbios name resolution for the computer names. But the question still remains, how can we add an alias that can be moved with the server application? We want to leave the computer name unchanged for the other resources on the machine. What am I missing?

Interestingly enough, this is quite simple on the public internet with dynamic domain services, such as no-ip.org. Is there an equivalent for LAN's?

I'm changing this to 1000 points.
0
 
andrewzimAuthor Commented:
Sorry, I see I can't go over 500 points.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
SilentezCommented:
Oh, I see... Hmm... for hostnames you can use hosts file, but it must be manually configured on each machine... :(
0
 
Steve KnightIT ConsultancyCommented:
Do they use WINS on the site by any chance that you could add?  Unless it is a tiny company with one subnet they will have either WINS or DNS.

As to getting your application to work over this it depends ... to get a server to accept \\anothername you have to adjust a paramater under HKLM\services\current control set\services\lanman .... can't find the key at the moment, will find it if you need it.  If you are just talking about a TCP connection and just need the name resolving to Ip then WINS, DNS, HOSTS table are your options.

Steve
0
 
Steve KnightIT ConsultancyCommented:
Another option is actually going the other way and means you don't need name resolution -- if your app can use an IP address then obtain an extra static IP address and assign a secondary address to the machine the app. runs on with that IP and set your app. to bind to the extra I (or all IP's).  To move machine you remove the secondary IP and move it.   Downtime is really short -- length of ARP cache on workstations, maybe 1 min as opposed to a DNS entry etc. which could be kept in use out of date pointing at the wrong IP for a while until it's TTL runs out.

Steve
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now