[OpenSIPS-Devel] [ opensips-Bugs-3599493 ] DNS Cache and SRV Records issue

SourceForge.net noreply at sourceforge.net
Mon Jan 7 11:45:07 CET 2013


Bugs item #3599493, was opened at 2013-01-04 08:11
Message generated for change (Comment added) made by vladut-paiu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3599493&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: 1.8.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Pierre-Yves (pym67)
Assigned to: Vladut-Stefan Paiu (vladut-paiu)
Summary: DNS Cache and SRV Records issue

Initial Comment:
DNS Cache module does not seems to handle properly DNS SRV records.

Example:
Opensips "dns cache" perform a lookup on mydomain.com.
The DNS answers : SRV gw1.mydomain.com and gw2.mydomain.com
Then Opensips perform an "A" query to "gw1.mydomain.com"
The DNS answers 1.2.3.4 for gw1.mydomain.com.
Finaly opensips forward the SIP request to 1.2.3.4


After that, on a new SIP request, Opensips continue to forward request directly to 1.2.3.4 (gw1.mydomain.com) and never trie to use gw2.mydomain.com

In my point of view, there is an issue in the DNS Cache module. Opensips should try randomly both mydomain.com SRV records gw1.mydomain.com and gw2.mydomain.com



----------------------------------------------------------------------

>Comment By: Vladut-Stefan Paiu (vladut-paiu)
Date: 2013-01-07 02:45

Message:
Hello,

Indeed this is an issue. The DNS cache module stores both the records, but
it will only use the first one and will not try to randomly choose between
them. Thus, the request will go to the second SRV record only in case of
fail-over.

I will take a look and see how this behavior can be fixed.

Regards,
Vlad

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3599493&group_id=232389



More information about the Devel mailing list