Allow dns queries for specific subdomain x.domain.com and block rest of the queries for *.domain.com

Manuel Ramírez manuel.ramirez at grupoica.com
Tue Apr 11 09:19:01 UTC 2017


Hi,

I would like to allow queries for specific blogspot.com subdomains and
block the rest of the queries.
I have a file with several zones configured, one of those zones is  the
specific subdomain type "forward":

*zone "w.blogspot.com <http://w.blogspot.com>" IN { type forward;
forwarders { 213.0.184.85; 213.0.184.88; };};*

and below i have the zone blogspot.com as master resolving an internal ip:

*zone "blogspot.com <http://blogspot.com>" IN { type master; file
"/var/named/data/db.sinkhole"; };*


But is not working, always resolves the internal ip address, i thought it
evaluates the zones in order and first should forward the query for
w.blogspot.com but is always matching the other zone.
Any idea about how can i achieve my goal?

Regards

Manuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20170411/425dd79c/attachment.html>


More information about the bind-users mailing list