<div dir="ltr">Hi Livui,<div><br></div><div>OK, understood that a DNS lookup is done at reload/restart, and the IP is cached. This makes sense in that ds_is_in_list() matches to the IP address that has been cached.</div><div><br></div><div>The problem is that when you list/dump the dispatcher database it is still showing the DNS address, and not the resolved IP address. You could obviously get into the situation where the DNS has been changed, but it is still using the old IP address.</div><div><br></div><div>Obviously, the workaround is to get the dispatcher module is issued with a reload. However, what is the impact on active sessions/dialogs when dispatcher is reloaded? Can this be done without impacting active sessions/dialogs?</div><div> </div><div>Thanks.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 1 Mar 2021 at 16:11, Liviu Chircu <<a href="mailto:liviu@opensips.org">liviu@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 01.03.2021 18:04, solarmon wrote:<br>
> I would like somebody to confirm this is the behaviour - i.e. <br>
> ds_is_in_list() does a DNS lookup on the Destination address of the <br>
> endpoint.<br>
<br>
Hi,<br>
<br>
Technically speaking, ds_is_in_list() does *not* perform a DNS lookup, <br>
as it works with cached data.  DNS lookups are indeed done, however, <br>
during startup or after each MI "ds_reload" command.  The resulting IP <br>
addresses will be cached *indefinitely*, until the next reload/restart.<br>
<br>
Best regards,<br>
<br>
-- <br>
Liviu Chircu<br>
<a href="http://www.twitter.com/liviuchircu" rel="noreferrer" target="_blank">www.twitter.com/liviuchircu</a> | <a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">www.opensips-solutions.com</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>