How would I go about setting up an A record for in Bind9 for any negative queries? I want to forward our staff to an informational page if they were to visit a non existent domain. We have an internal caching server.
How would I go about setting up an A record for in Bind9 for any negative queries? I want to forward our staff to an informational page if they were to visit a non existent domain. We have an internal caching server.
There is an article here on setting up NXDOMAIN redirects: BIND 9.9 redirect zones (for NXDOMAIN redirection).
Here is the example as given by ISC, but full explanation is available on their page.
In
named.conf
, you add a new "zone":And then in that zone file
db.redirect
, you populate it with your answer:Instead of
*.
, you can narrow down TLDs and domains. For example, if you only want failed .co.uk addresses to be redirected to a specific address: