Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
1  
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
add comment

2 Answers 2

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 (.in-addr.arpa zone). –  ZaB Apr 19 '12 at 7:54
add comment

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

eg.

domain yourdomain.com
search yourdomain.com
nameserver 192.168.111.100
nameserver 192.168.111.150
share|improve this answer
add comment

Your Answer

 
discard

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.