Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a windows service which runs based on the machine name or ip assigned to it. I am facing problems running it when i have a failover server and alias names described below.

There is a main server in one subnet with machine name like server_a and a failover server in another subnet with name server_b

Both the systems are created with Alias name server and this name is configured in the service configuration for my softwares service.

Both the systems are configured with different IP address and there is no DNS server configured in the n/w.

My services will connect to main service if the server configuration is configured with actual machine name (server_a/server_b) or with IP but will not connect if Alias name (server) is configured.

Services always show error code as “Unable to read Configuration ! : Code 1” if started in debug mode,if not able to connect.

We use the gethostbyname function to resolve the name.

Can anybody let me know anyway by which i can make the service work without changing the name everytime.

share|improve this question
What OS are you using? What service? How are they clustered? – mrdenny Dec 3 '10 at 23:49
Windows 2003. and the service is a windows service that runs in the background. An application is used to maintain the aliases for failover. – ckv Dec 4 '10 at 0:01
Have you tried adding the alias names to the hosts files on the servers? ( c:\windows\system32\drivers\etc\hosts ) – Helvick Dec 4 '10 at 12:01

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.