Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 it possible to make the Windows 2003 Server Dns Server lookup domains in the hosts file also? This would be nice to implement a corporate block list for all those ad sites, and for having a central place to configure them.

And the hosts file can be regulary updated from [ winhelp2002], so I don't have to enter 1000 sites manually.

share|improve this question
up vote 4 down vote accepted

No. The hosts file is used for resolving stuff on the local server only. It has nothing to do with serving DNS.

share|improve this answer

As above: No. Not only is a hosts file the wrong tool for this job, the DNS itself is the wrong tool for this job. Blocking/overriding the translation from domain names to addresses blocks it for every protocol, not just for HTTP. (There are several other problems that it causes, besides.) To deal with an HTTP issue like this, one must work at the HTTP level.

Either set up a proxy HTTP server, that everyone uses and that strips out all WWW page requests to advertising sites, or have everyone use a proxy-autoconfiguration file in their WWW browsers that does the same thing. There are several PAC files publicly available that will redirect WWW browsers away from advertising WWW pages.

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.