[OpenSIPS-Devel] [ opensips-Bugs-3599493 ] DNS Cache and SRV Records issue
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=detailatid=1086410aid=3599493group_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: Works For Me Priority: 3 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-22 08:40 Message: Hello, On further testing and code inspection, this seems to be working fine. The DNS core fetches the cached results and then calls the function that orders the DNS entries based on priority. Tested with a domain name with two equal priority SRV records, and ran multiple calls which reached both IP addresses. Regards, Vlad -- 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=detailatid=1086410aid=3599493group_id=232389 ___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
[OpenSIPS-Devel] [ opensips-Bugs-3599493 ] DNS Cache and SRV Records issue
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=detailatid=1086410aid=3599493group_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=detailatid=1086410aid=3599493group_id=232389 ___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
[OpenSIPS-Devel] [ opensips-Bugs-3599493 ] DNS Cache and SRV Records issue
Bugs item #3599493, was opened at 2013-01-04 08:11 Message generated for change (Tracker Item Submitted) made by pym67 You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=1086410aid=3599493group_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: Nobody/Anonymous (nobody) 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 -- You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=1086410aid=3599493group_id=232389 ___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/devel