<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Hi Agalya,<br>
<br>
OpenSIPS does full flavor DNS lookup (with NATPR and SRV), but
this is internal, and not accessible from script. OpenSIPS
implements auto DNS-based failover :<br>
<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.2.x/tm.html#id293694">http://www.opensips.org/html/docs/modules/2.2.x/tm.html#id293694</a><br>
<br>
My understanding is you want the DNS resolving to be done at
script level and to have access to the results ?<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 20.06.2016 20:35, Ramachandran,
Agalya (Contractor) wrote:<br>
</div>
<blockquote
cite="mid:955ec37716d94d139c82be2835377bd5@COPDCEX28.cable.comcast.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<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:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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]-->
<div class="WordSection1">
<p class="MsoNormal">Hi team,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We are using opensips for our project
requirements.<o:p></o:p></p>
<p class="MsoNormal">I have a scenario where we need DNS-SRV
query and the result of this should be placed as the desturi
to send request out.(In case of forking call)<o:p></o:p></p>
<p class="MsoNormal">As far as I went through opensips
documentation, there are some core parameters for dns related
config such as “<a moz-do-not-send="true"
href="https://www.opensips.org/Documentation/Script-CoreParameters-1-11#toc44"><span
style="color:windowtext;text-decoration:none">dns_retr_time</span></a>”
,”<a moz-do-not-send="true"
href="https://www.opensips.org/Documentation/Script-CoreParameters-1-11#toc44"><span
style="color:windowtext;text-decoration:none">dns_retr_time</span></a>” ,”<a
moz-do-not-send="true"
href="https://www.opensips.org/Documentation/Script-CoreParameters-1-11#toc46"><span
style="color:windowtext;text-decoration:none">dns_servers_no</span></a>”
etc… <o:p></o:p></p>
<p class="MsoNormal">According to my understanding these config
variables can be declared and used in the opensips.config file
to control the settings of DNS query.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Is there any available function where I can
use and pass the DNS server domain name, so that it fetches
the IP address of the host ?<o:p></o:p></p>
<p class="MsoNormal">Please let us know what is the best way to
achieve this?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal">Agalya<o:p></o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>