Hi all,
We are trying to do a DNS query using Kemi: KSR.ipops.dns_query(domain, "xyz")
The result is always -3. This is returned here: https://github.com/kamailio/kamailio/blob/5.5.4/src/modules/ipops/ipops_pv.c...
It seems weird to me that the error code is returned because the same non-Kemi code works just fine. Could it be related to this issue: https://github.com/kamailio/kamailio/issues/2052
Thanks.
Kind regards, Thomas
Hello,
this should be fixed in 5.6.x series. Probably it will be backported to 5.5.x before releasing next version in the series, if it is not too complex to do it.
Cheers, Daniel
On 09.06.22 08:20, Thomas de Rooij | CM.com wrote:
BTW for the KEMI ( at least in Lua ) it is not a big deal to do in the language itself:
local socket = require "socket"
local _, details = socket.dns.to.ip(domain)
-- details.ip would contain list of IPs resolved.
чт, 9 июн. 2022 г. в 08:44, Daniel-Constantin Mierla miconda@gmail.com: