Redirect only second and third level domains
Andrea Gabellini
andrea.gabellini at telecomitalia.sm
Thu Feb 23 12:21:20 UTC 2017
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?
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.gabellini at 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
More information about the bind-users
mailing list