I have a server set up with a bunch of subdomains that all point to the same caching server, which is done using a wildcard like so:
* IN A 192.168.1.1
This works great, but I would like to exclude a subdomain from that. I could set up another entry, like
mysubdomain IN A 192.168.1.2
but what I would really like is for that subdomain to throw an NXDOMAIN error. Is there any way to do that? Something like:
mysubdomain IN A NXDOMAIN
I'm aware that I could just tell the server to not serve anything coming from that domain, but it would be nice if I could throw a DNS error instead of a server error.