> Am 15.12.2018 um 09:50 schrieb bert hubert :
>
> On Sat, Dec 15, 2018 at 09:42:21AM +0100, Bit World Computing - Michael
> Mertel wrote:
>> Hi Aleksandr,
>>
>> I’am somewhat lost, I’am able to set a rule to have the Lua function called
>> for MX requests, but how do I return a response? Spoo
On Sat, Dec 15, 2018 at 09:42:21AM +0100, Bit World Computing - Michael Mertel
wrote:
> Hi Aleksandr,
>
> I’am somewhat lost, I’am able to set a rule to have the Lua function called
> for MX requests, but how do I return a response? Spoof ist just for
> A-records, but not for MX.
> addLuaAction
Hi Aleksandr,
I’am somewhat lost, I’am able to set a rule to have the Lua function called for
MX requests, but how do I return a response? Spoof ist just for A-records, but
not for MX.
addLuaAction(QTypeRule(dnsdist.MX), luarule)
Do I have to generate an Answer, but how? Is it possible to use
Hi Michael,
You should be able to load the file *(if the list of zones is large enough
and warrants a file)* or initialize array of subzones *(if there are few
zones you want to test)* once, when the process starts and loads the Lua
script. Loading the file on every request would definitely become
Hi Aleksandr,
ja Lua was the way I’m planning to go. But just wasn’t sure to use dnsdist or
recursor, but probably does not matter in that case.
Does the file gets loaded for every request with io.open and could this become
a performance issue in your opinion? All DNS requests from a fairly goo
Hi Michael,
I recommend using Lua to intercept the DNS queries. Both dnsdist and
recursor should be able to support it. In Lua you can check for query type
to be MX and load a list of domains from a file using ‘io.open’. Provide
necessary DNS response if the query matches your list of zones.
Addit
Hi,
I’am looking for the most efficent way to spoof the answer of a MX query. I
need to redirect outgoing e-mails (specific domains only) to a smtp gateway for
further processing before it leaves the local network. I cannot use any kind of
transport tables at the MTA, so my approach was to use