I want all computers in the network to use my hosts file. How is it possible to do? Should I create a DNS server on my laptop or what?
UPDATE: OS - Windows 7, 64 bit. The goal is to restrict the access to some web sites.
If the goal is to restrict access to some web-sites by deliberately re-pointing specific DNS addresses to other IP's, then DNS server could be part of what you need. If you went with the DNS server method, you would also need to make sure the other computers use your DNS server and not some other one on the internet. You could do this by configuring it in each computer separately, or you could set up a DHCP server to point the other computers to it.
Another solution is to set up a proxy server with the appropriate configurations for the web-sites you're trying to block, and then configure all of the other computers to use your proxy server in their specific web-browsers.
I would not generally suggest using a laptop as a server though, unless you never unplug it from the network. If it is the DNS server, and someone tries to browse the net while you were unplugged, they may not be able to.
The last option I can think of is to write a script that copies your HOSTS file to the other computers, and run this script as either a scheduled task, or run it manually when you update the HOSTS file. Depending on what sort of permissions you have on the other computers, you could run the script on your laptop and copy it to the other computers, or the script could run on the other computers and copy it from your laptop.
You can. I use an onboard DNS server because it is much faster. Posadis is good. TreeWalk, SANS, and Simple DNS Plus are others. They all work, but stability and options make them slightly different from one another.
If you set it up as a caching server, you will also have DNS name resolution when the online DNS servers go down, at least for the cached IP's.
The DNS is not the answer to an HTTP problem.
So put down the chocolate-covered banana and step away from the European currency systems. You never really wanted "all computers in the network to use my hosts file" at all.
If you want to restrict HTTP access for certain WWW sites, the correct approach is to work on your HTTP services, not your DNS services. Use one of two approaches: