Super User is a question and answer site for computer enthusiasts and power users. 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

Is there any way to resolves host-name without added to hosts file?

In order to access internal site in my company I have to add the host-name and IP in the .../etc/hosts file. Is there any way to add this in DNS server or active directory instead of manually add this to 100 computer.

share|improve this question
You would add it to the DNS server, since that's what it's for. ;) What have you tried? – Ƭᴇcʜιᴇ007 Apr 3 '12 at 17:19
I am actually using windows 2008r2 and already added the name and IP to DNS manager as Host (A) but still, if I remove the IP and host from hosts file I am no longer able to access the site. – Mekko Apr 3 '12 at 17:59
what is the internal ip address of your AD DNS server and what is the output of nslookup from one of your client computers (not the server)? – Jeremy W Apr 4 '12 at 4:18

It seems that your server is not using your AD as DNS resolver. Or you have the negative reply cached.

Please ensure your server is using your AD server as it's DNS server. Then add the A record to it, and it should work.

You might have to run ipconfig /flushdns on the server to make sure the cache is cleaned first.

share|improve this answer
My server is using AD server as it's DNS and I flushed both the server and client but still :| !!! – Mekko Apr 3 '12 at 18:23
You need to add your name in a reverse lookup zone for your ip address ( zone). – ZaB Apr 19 '12 at 7:54

Set your DNS servers' addresses for DNS name resolution in /etc/resolv.conf


share|improve this answer

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.