问题原文
原帖链接 · hardik p · CC BY-SA 3.0
I came across solutions for blocking selected DNS resolutions by creating block zones. But how would I allow certain sites only and blocking all others in BIND?
已采纳解答
原帖链接 · Olipro · CC BY-SA 3.0
Just configure BIND so that it doesn't allow recursive resolution and create explicit forward zones for the domains that you want to permit querying.
On a side note, if you're attempting to use this as a means of restricting access, it's a terrible method that can be trivially bypassed either by clients simply specifying alternative DNS servers (although you could potentially block this too) or by adding manual entries for DNS names on the local machine.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
