These are chat archives for CZ-NIC/knot-resolver

9th
Nov 2018
Ilya Evseev
@ilyaevseev
Nov 09 2018 17:17
Hi all!
Is it possible to intercept failed responses?
I need to resolve temporarily unavailable domains to fake IP.
This is needed for reloading Nginx configs because it stops on any DNS problem.
It's easily implemented in Unbound ( https://gist.github.com/ilyaevseev/ad0cb785d7ce611190b72e6f342e5490 ), but I want to migrate to Knot.
..and of course, I know about "predict" and "serve_stale" modules ;-)
Vladimír Čunát
@vcunat
Nov 09 2018 17:22
There's not a ready config for that. I guess you know this is an ugly thing to do. Lua module for this would be of similar complexity to what you posted, probably a bit shorter.