<div dir="ltr">Hi,<div><br></div><div>can you run kamcmd dns.view? There you should see, what records are cached and when they will be refreshed.</div><div><br></div><div>Thanks,</div><div>Carsten</div><div><br></div><div><br></div><img src="http://t.sidekickopen62.com/e1t/o/5/f18dQhb0S7ks8dDMPbW2n0x6l2B9gXrN7sKj6v4LGF6VcW1262m64hLW3xdLSP72TN_3d7C-zj01?si=6230090009280512&pi=a9fb3f58-f137-45e1-e6bb-507fcc7a5032" style="display:none!important" height="1" width="1"></div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-27 17:04 GMT+02:00 Louis-Olivier Roof <span dir="ltr"><<a href="mailto:lroof@jive.com" target="_blank">lroof@jive.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for your prompt answer Carsten,<br>
<br>
According to the docs, the cache should be periodically invalidated<br>
according to the replies TTL (bounded by config values).<br>
<br>
So leaving the cache ON should be OK and still produce DNS queries,<br>
which is not what I'm seeing.<br>
<br>
Am I misunderstanding something?<br>
<br>
Thanks!<br>
<br>
Louis-Olivier<br>
<span class=""><br>
On 2016-07-27 10:51 AM, Carsten Bock wrote:<br>
> Hi Louis-Olivier,<br>
><br>
> you should look at the DNS-Parameters of the Core:<br>
> <a href="http://www.kamailio.org/wiki/cookbooks/devel/core#dns_parameters" rel="noreferrer" target="_blank">http://www.kamailio.org/wiki/cookbooks/devel/core#dns_parameters</a><br>
><br>
> Kamailio caches DNS results by default (which can be turned off).<br>
><br>
> Thanks,<br>
> Carsten<br>
><br>
</span><span class="">> 2016-07-27 16:47 GMT+02:00 Louis-Olivier Roof <<a href="mailto:lroof@jive.com">lroof@jive.com</a><br>
</span>> <mailto:<a href="mailto:lroof@jive.com">lroof@jive.com</a>>>:<br>
<span class="">><br>
>     Dear Kamailio users,<br>
><br>
>     Ref: <a href="http://kamailio.org/docs/modules/4.2.x/modules/tm.html#tm.f.t_relay" rel="noreferrer" target="_blank">http://kamailio.org/docs/modules/4.2.x/modules/tm.html#tm.f.t_relay</a><br>
><br>
>     Using t_relay([host, port]) to relay messages to a specific host does<br>
>     not seem to generate DNS queries to the said host after Kamailio has<br>
>     initially processed the configuration file.<br>
><br>
>     It resolves the host once at startup then continues using the same<br>
>     IP after.<br>
><br>
>     Is that expected behavior? Anyone has had this issue before and found a<br>
>     way to work around it?<br>
><br>
>     Note that for this specific application, messages need to be relayed to<br>
>     a specified host (different from current R-URI) and this host needs to<br>
>     be resolved by DNS during normal operation, not only at startup.<br>
><br>
>     Thanks!<br>
><br>
>     Louis-Olivier<br>
><br>
>     _______________________________________________<br>
>     SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
</span>>     <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a> <mailto:<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
<span class="">>     <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Carsten Bock<br>
> CEO (Geschäftsführer)<br>
><br>
> ng-voice GmbH<br>
> Millerntorplatz 1<br>
> 20359 Hamburg / Germany<br>
><br>
> <a href="http://www.ng-voice.com" rel="noreferrer" target="_blank">http://www.ng-voice.com</a><br>
</span>> mailto:<a href="mailto:carsten@ng-voice.com">carsten@ng-voice.com</a> <mailto:<a href="mailto:carsten@ng-voice.com">carsten@ng-voice.com</a>><br>
<span class="im HOEnZb">><br>
> Office <a href="tel:%2B49%2040%205247593-40" value="+4940524759340">+49 40 5247593-40</a><br>
> Fax <a href="tel:%2B49%2040%205247593-99" value="+4940524759399">+49 40 5247593-99</a><br>
><br>
> Sitz der Gesellschaft: Hamburg<br>
> Registergericht: Amtsgericht Hamburg, HRB 120189<br>
> Geschäftsführer: Carsten Bock<br>
> Ust-ID: DE279344284<br>
><br>
> Hier finden Sie unsere handelsrechtlichen Pflichtangaben:<br>
> <a href="http://www.ng-voice.com/imprint/" rel="noreferrer" target="_blank">http://www.ng-voice.com/imprint/</a><br>
><br>
><br>
</span><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
><br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Carsten Bock<br>CEO (Geschäftsführer)<br><br>ng-voice GmbH<br>Millerntorplatz 1<br>20359 Hamburg / Germany<br><br><a href="http://www.ng-voice.com" target="_blank">http://www.ng-voice.com</a><br>mailto:<a href="mailto:carsten@ng-voice.com" target="_blank">carsten@ng-voice.com</a><br><br>Office +49 40 5247593-40<br>Fax +49 40 5247593-99<br><br>Sitz der Gesellschaft: Hamburg<br>Registergericht: Amtsgericht Hamburg, HRB 120189<br>Geschäftsführer: Carsten Bock<br>Ust-ID: DE279344284<br><br>Hier finden Sie unsere handelsrechtlichen Pflichtangaben:<br><a href="http://www.ng-voice.com/imprint/" target="_blank">http://www.ng-voice.com/imprint/</a></div>
</div>