[DNS] Simple Way of Filtering specific subdomain [URL] using DNS Server
Posted by admin on December 9th, 2009
Blocking http://komiknabimuhammad.blogspot.com is again our topic.
If you don’t have Cisco Router with NBAR [Regular Expression] capability to do this task, then use your DNS Server does it. Since DNS used by most of your users compared to Proxy only for some of total user you might have.
Here what you have to do :
1. Create Zone in named.conf
My example : komiknabimuhammad.blogspot.com
zone “komiknabimuhammad.blogspot.com” {
type master;
file “blocked/blocked.site”;
};
2. Create file for your zone. [what ever you named it].
$TTL 86400
@ IN SOA ns1.indo.net.id. hostmaster.indo.net.id. (
2009120801
3600
3600
360000
86400 )
IN NS ns1.indo.net.id.
IN NS ns2.indo.net.id.
IN A 202.159.32.14
3. This raw : “IN A 202.159.32.14″
Means any of request to resolve the URL “komiknabimuhammad.blogspot.com” will be redirected
to Default Web Page on Server 202.159.32.14
Nope sure if this can work with CNAME.
Anyway, this only affect any of user who use your DNS Server to Resolve.
Out of that, they still able to resolve to that subdomain.
Note : Above task only affected to subdomain URL of Blogspot “komiknabimuhammad.blogspot.com” ONLY
Not the Entire of Blogspot Pages which might be yet useful for us.
Thanks to Geri Anggara
a. rahman isnaini r.sutan
*) Hey don’t forget to restart your DNS service…



December 12th, 2009 at 9:51 am
One of The best Indonesia’s Networker
February 9th, 2010 at 9:32 am
Halo Pak Rahman,
Btw jangan lupa di flush cache dns nya :p
February 9th, 2010 at 10:38 am
@Yudi, Iso ae…
salam ma Affan Bassalamah…
Halo Dian, siap