• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Using DNS to block websites

nightowl

Golden Member
I am trying to use DNS to block websites by basically using 127.0.0.1 for any domains that I want to block. I originally thought that I could edit the hosts file on the DNS server (Win2k Server) to block the sites but that only works for the local machine and does not affect the PCs asking the DNS server for lookups. So, is there a way to make the DNS server look at the hosts file first before asking the DNS server it is set to forward its queries to? I am currently using 2k sever but I am not opposed to using RedHat or some other form of Linux or Unix.
 
You would need to add a zone to the DNS server for each domain you want to block. The hosts file is used only for lookups by the local machine. Get to the DNS server management console via Computer Management, MMC, Control Panel, or whatever. Then you right-click on something (don't remember and don't have a Windows Server handy) and choose "Add Zone".
 
I found out already that the hosts file only works for a single machine 🙁. I was hoping that there was an easier way to block domains than adding a new zone in the DNS MMC. I may try using some form of Linux since the zone files are easier to mass edit than Windows.
 
Back
Top