[prev in list] [next in list] [prev in thread] [next in thread]
List: openser-users
Subject: [SR-Users] Re: DNS resolution with ipops
From: Henning Westerholt <hw () gilawa ! com>
Date: 2023-05-22 14:44:01
Message-ID: AM0PR07MB38737B1748BAFC1C1A53B94ABF439 () AM0PR07MB3873 ! eurprd07 ! prod ! outlook ! com
[Download RAW message or body]
[Attachment #2 (text/plain)]
Hello,
the function dns_query(..) just uses getaddrinfo() function, so it does not use the \
internal Kamailio cache. It would do a DNS resolution to the configured resolver for \
each call. The TTL will be irrelevant in this scenario for Kamailio.
Cheers,
Henning
From: harneet singh <hbilling@gmail.com>
Sent: Sonntag, 21. Mai 2023 13:35
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Subject: [SR-Users] DNS resolution with ipops
Hi Experts,
I am planning to use dns_query() API from the ipops module, which I understand from \
some documentation that it internally uses getaddrinfo(). I wanted to check if \
someone can comment on the DNS Cache mechanism in this case.
* Does Kamailio retain any dns cache while using this API, or would it be actually \
doing the resolution for each call.
* In light of the above, does Kamailio honour the TTL value in response to the DNS \
Query?
Regards,
Harneet Singh
--
"Once you eliminate the impossible, whatever remains, no matter how improbable, must \
be the truth" - Sir Arthur Conan Doyle
[Attachment #3 (text/html)]
<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.gmailsignatureprefix
{mso-style-name:gmail_signature_prefix;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span \
style="mso-fareast-language:EN-US">Hello,<o:p></o:p></span></p> <p \
class="MsoNormal"><span \
style="mso-fareast-language:EN-US"><o:p> </o:p></span></p> <p \
class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">the function \
dns_query(..) just uses getaddrinfo() function, so it does not use the internal \
Kamailio cache. It would do a DNS resolution to the configured resolver for each \
call. The TTL will be irrelevant in this scenario for \
Kamailio.<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-GB" \
style="mso-fareast-language:EN-US"><o:p> </o:p></span></p> <p \
class="MsoNormal"><span lang="EN-GB" \
style="mso-fareast-language:EN-US">Cheers,<o:p></o:p></span></p> <p \
class="MsoNormal"><span lang="EN-GB" \
style="mso-fareast-language:EN-US"><o:p> </o:p></span></p> <p \
class="MsoNormal"><span lang="EN-GB" \
style="mso-fareast-language:EN-US">Henning<o:p></o:p></span></p> <p \
class="MsoNormal"><span lang="EN-GB" \
style="mso-fareast-language:EN-US"><o:p> </o:p></span></p> <div \
style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt"> <div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm \
0cm;font-size:pt"> <p class="MsoNormal"><b><span lang="EN-GB">From:</span></b><span \
lang="EN-GB"> harneet singh <hbilling@gmail.com> <br>
<b>Sent:</b> Sonntag, 21. Mai 2023 13:35<br>
<b>To:</b> Kamailio (SER) - Users Mailing List \
<sr-users@lists.kamailio.org><br> <b>Subject:</b> [SR-Users] DNS resolution \
with ipops<o:p></o:p></span></p> </div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hi Experts,<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I am planning to use <b>dns_query</b>() API from the ipops \
module, which I understand from some documentation that it internally uses \
<b>getaddrinfo</b>(). <o:p></o:p></p> </div>
<div>
<p class="MsoNormal">I wanted to check if someone can comment on the DNS Cache \
mechanism in this case. <o:p></o:p></p> </div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">* Does Kamailio retain any <b>dns cache</b> while using this \
API, or would it be actually doing the resolution for each call.<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">* In light of the above, does Kamailio honour the <b>TTL value \
i</b>n response to the DNS Query?<o:p></o:p></p> </div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Regards,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Harneet Singh<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="gmailsignatureprefix">-- </span><o:p></o:p></p>
<div>
<p class="MsoNormal">"Once you eliminate the impossible, whatever remains, no \
matter how improbable, must be the truth" - Sir Arthur Conan \
Doyle<o:p></o:p></p> </div>
</div>
</div>
</div>
</div>
</body>
</html>
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
--===============0010570807==--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic