Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 [http://winhelp2002.mvps.org/hosts.txt winhelp2002], so I don't have to enter 1000 sites manually.

share|improve this question

2 Answers 2

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

 
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.