Hello Daniel,

 

Thanks! I wll try. I didn't find out how to use dns.add_a. Is someone has the exact params lists? Thank you.

 

Regards,

 

Igor.

 

De : Daniel-Constantin Mierla <miconda@gmail.com>
Envoyé : jeudi 11 janvier 2024 19:36
À : Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Cc : Igor Potjevlesch <igor.potjevlesch@gmail.com>
Objet : Re: [SR-Users] Internal DNS resolver

 

Hello,

 

On 11.01.24 19:07, Igor Potjevlesch via sr-users wrote:

Hello!

 

I have a quick question about the internal DNS resolver and cache embedded in Kamailio.

Is the ability to add an entry with dns.add_a bypass the "real" DNS lookup? So, let's say that sip.example.com is publicly resolve alternatively with 1.2.3.4 & 5.6.7.8.9, if I do a dns.add_a to add my own sip.example.com with, alternatively, 127.0.0.1 and 127.0.0.2, will it work?



yes, it should work, the internal cache is checked first and if entry found, then it is used.

You can also add entries in the dns cache at startup via dns_cache modparam from corex.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla (@ asipto.com)
twitter.com/miconda -- linkedin.com/in/miconda
Kamailio Consultancy, Training and Development Services -- asipto.com
Kamailio Advanced Training, February 20-22, 2024 -- asipto.com
Kamailio World Conference, April 18-19, 2024, Berlin -- kamailioworld.com

Sans virus.www.avast.com