Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Aug 2016 11:45:27 -0700
From:      Charles Swiger <cswiger@mac.com>
To:        Yuri <yuri@rawbw.com>
Cc:        FreeBSD - <freebsd-questions@freebsd.org>
Subject:   Re: Any way to cache large /etc/hosts files?
Message-ID:  <00938E41-D041-48E6-A561-24AC721D0C42@mac.com>
In-Reply-To: <c9231456-2860-5455-a921-0ff60b9a2760@rawbw.com>
References:  <c9231456-2860-5455-a921-0ff60b9a2760@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Yuri--

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

https://dnsrpz.info <https://dnsrpz.info/>;

Recent versions of ISC BIND support this....

Regards,
--=20
-Chuck

On Aug 5, 2016, at 11:33 AM, Yuri <yuri@rawbw.com> wrote:
> Some people suggest using pre-compiled lists of ad and malware domains =
and block them on DNS level. (ex. https://github.com/StevenBlack/hosts)
>=20
> 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.
>=20
>=20
> Is there a way to cache /etc/hosts once and use it?
>=20
>=20
> Yuri
>=20
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to =
"freebsd-questions-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00938E41-D041-48E6-A561-24AC721D0C42>