Question about the hosts file
-
I have put a lot of ad/malware sites in the /etc/hosts file example
127.0.0.1 foxnews.adsonar.com
I saved that to the /ect/hosts file and reopened the file and the info is still listed. But I can pull up the site with out any issues. What Im I doing wrong?
-
I guess the dns forwarder doesn't use the hostsfile but builds it's own cache and forwards requests that don't have a hit in his cache to the upstream dns servers. The next version of pfSense will have a feature to add blocklists as aliases ( http://pfsense.com/~sullrich/pics/SampleAlias.PNG ). This way you can block these items by adding a firewallrule that is using this alias. There is no time for the release of the version that will have this feature yet.
-
Thanks for the answer and the alternative solution.