The "Right Way" to Block Domains with Bind9
I am a DNS newbie and have set up Bind9 as an adblocking server inside my LAN.
I've seen adblocking zones written as returning localhost and still others returning NXDOMAIN. I basically have an entry for each ad-serving domain, and then point the domain to an internal IP address.
Is one way more "right" than another?
This might be a dumb question: Is there a better way to handle subdomains? For example, hybl9bazbc35.pflexads.com as a domain entry plfexads.com, then the hyb... part as a host?
Last edited by mpapet; 04-21-2018 at 11:10 PM.
|