On Thu, Feb 23, 2017 at 7:21 AM, Andrea Gabellini
<andrea.gabell...@telecomitalia.sm> wrote:
> Hi,
>
> I would like to redirect the NXDOMAIN responses to a courtesy page but
> only for second and third level domains. I mean something like:
>
> *.*. IN A 1.2.3.4
> *.*.*. IN A 1.2.3.4
>
> that obviously doesn't work. Is there a solution to do it?

I don't think that there is, but your question is somewhat vague -- is
this for second / third levels *within a domain you are authoritative
for*?

If so, *.example.com is the closest you can do without some serious futzing.
If you want to do this during recursion, nope, you cannot really
accomplish this with BIND -- not, even if you could, it sounds like a
really really bad idea.

What are you actually trying t odo?

W

>
>
> Actually my configuration is:
>
> zone "." in {
>   type redirect;
>   file "redirect";
> };
>
> and the zone file is:
>
> $TTL 300
> @ IN SOA dns.example.com. hostmaster.example.com. 2017020202 0 0 0 0
> @ IN NS dns.example.com.
> ;
> *. IN A 1.2.3.4
>
> Thanks,
> Andrea
>
> --
> ----------------------------------------------------------------
> If today was a fish, I'd throw it back in !
>
> ----------------------------------------------------------------
>
> Ing. Andrea Gabellini
> Email: andrea.gabell...@telecomitalia.sm
> Skype: andreagabellini
> Tel: (+378) 0549 886111
> Fax: (+378) 0549 886188
>
> Telecom Italia San Marino S.p.A.
> Via XXVIII Luglio, 212 - Piano -2
> 47893 Borgo Maggiore
> Republic of San Marino
>
> http://www.telecomitalia.sm
>
> _______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
> from this list
>
> bind-users mailing list
> bind-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users



-- 
I don't think the execution is relevant when it was obviously a bad
idea in the first place.
This is like putting rabid weasels in your pants, and later expressing
regret at having chosen those particular rabid weasels and that pair
of pants.
   ---maf
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to