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

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I have a Windows service with a config file that points to web services it needs to call, is it more secure to put a fake DNS name for the server being connected to, then update the HOSTS file to redirect outbound calls to the right IP address?

share|improve this question
What are you attempting to secure ? – Iain Aug 17 '12 at 7:10
I was just wondering about hiding the identity of the other servers within the network. – ck. Aug 17 '12 at 7:30
What's wrong with real DNS? – SmallClanger Aug 17 '12 at 8:51
up vote 4 down vote accepted

No, basically. Why would it be? If someone can read the DNS name from the config, then they can simply do a Ping or check the hosts file anyway.

Regardless, though, obscuring names and IP addresses is definitely not a way to do security and will simply make maintenance and management difficult for you.

share|improve this answer
Thanks for this. Was just a random thought I had in the shower this morning... – ck. Aug 17 '12 at 12:42

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.