R
R
Rafail Dunyashev2016-11-01 10:04:50
linux
Rafail Dunyashev, 2016-11-01 10:04:50

How to put a stub page for "a in denied error"?

Now the NAMED log contains the following information:

client 194.109.133.204#50443: query (cache) 'somedomainname.ru/A/IN' denied
client 62.216.31.213#8672: query (cache) 'somedomainname.ru/A/IN' denied
client 194.109.20.101#46774: query (cache) 'somedomainname.ru/A/IN' denied
client 194.109.133.213#39113: query (cache) 'somedomainname.ru/A/IN' denied
client 194.109.20.101#63365: query (cache) 'somedomainname.ru/A/IN' denied
client 194.109.133.212#16523: query (cache) 'somedomainname.ru/A/IN' denied
client 62.216.31.210#40557: query (cache) 'somedomainname.ru/A/IN' denied
client 194.109.133.211#33622: query (cache) 'somedomainname.ru/A/IN' denied
client 62.216.31.210#17047: query (cache) 'somedomainname.ru/A/IN' denied
client 62.216.31.208#41118: query (cache) 'somedomainname.ru/A/IN' denied

I would like, in addition to recording an error of this kind, to display to users a certain general stub page. How to set it up?
Those need to make a stub not for "denied" addresses, but only for "/A/IN' denied".

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2016-11-01
@Zarom

This entry is in the DNS server logs. These entries have nothing to do with nginx, so it's not clear why you want to display any page.
Or are you blocking access to somedomainname.ru and want to notify the user about it? Then it is worth redirecting requests to somedomainname.ru to some deny.local, which will give out a page about the blocking.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question