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>:

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:

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#L370

 

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


__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online: June 20-23, 2022
  * https://www.asipto.com/sw/kamailio-advanced-training-online/
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users