Any way to cache large /etc/hosts files?

Charles Swiger cswiger at
Fri Aug 5 18:45:35 UTC 2016

Hi, Yuri--

Take a look into DNS RPZ, aka DNS blacklisting (the common use case): <>

Recent versions of ISC BIND support this....


On Aug 5, 2016, at 11:33 AM, Yuri <yuri at> wrote:
> Some people suggest using pre-compiled lists of ad and malware domains and block them on DNS level. (ex.
> The resulting hosts file is about 1MB. nscd(8) caches DNS results, but it does this on name by name basis. Every new domain name request, even within the same process, causes /etc/hosts file to be reread again.
> Is there a way to cache /etc/hosts once and use it?
> Yuri
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list