Replicating some dnsmasq options in dnsdist lua #16938
karelbilek
started this conversation in
Show and tell
Replies: 1 comment
-
|
I think in 2.1.0, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I needed to replicate certain dnsmasq options in dnsdist, because I want to run dnsdist as a local stub resolver
More concretely, I needed to implement (following by dnsmasq documentation):
stop-dns-rebinddomain-neededbogus-privThe way I replicated it - through lua functions - in file
checks.lua. Note that the behaviour is a little different - the dns query just drops, doesn't return "not found".The lua is then loaded and run in config
(note that for copyright, I have been looking at dnsmasq code for implementing this and getting some ideas from there, so this can be seen as being derivative of dnsmasq code, I am not a lawyer)
You might want to remove the warnlogs if you run this in production, depending on your setup.
Beta Was this translation helpful? Give feedback.
All reactions