New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kamailio logs errors due to unsupported EDNS0 extension in DNS responses #2087
Comments
Thank you for the report. Could you try with the patch aeea940 on a azure VM? Should be also work for 5.2. If it fix the problem for you it could be backported. Can you also check in the wireshark that the Azure DNS does not include something meaningful into the OPT record data? |
Wow that was quick! Unfortunately your commit does not build and fails with
I guess you need to use the lower level ns_t_opt instead of T_OPT |
Additional info: I used the 5.2.4 tag + a cherry-pick of your commit for this build. |
Ah, older glibc (< 2.25) did not contained the T_OPT type yet. I've added a small compatility define, please try again with commit 325d1e6 |
OK, this compiled. I will test thoroughly today and let you know the result ASAP. |
Hi, Henning! |
Ok, thanks for the confirmation. I will also backport it to stable branches. |
Description
We are running Kamailio in a Microsoft Azure VM. Azure started adding EDNS0 support - in the form of OPT pseudo-records at the end of replies - a few weeks ago and since then we see a lot of ERROR entries in Kamailio log. These do however have no function impact.
From what I can see they are simply not handled in core/resolv.c (EDNS0 is type 41).
Version in use is latest 5.2 package from Kamailio repo on Debian 9 (Stretch).
Log entries provided below
Troubleshooting
None, as this has no functional impact aside from filling the logs.
Reproduction
I can provide pcap of DNS traffic that contains EDNS0 OPT pseudo-entries on request.
Debugging Data
Log Messages
These lines are seen repeatedly only differing in timestamp and PID of kamailio process. In total about 40% of log entries are like the one above.
SIP Traffic
not related to SIP, but to DNS
Possible Solutions
Add EDNS0 type 41 in core/resolv.c and don't fire an ERROR in the logs.
Additional Information
kamailio -v
The text was updated successfully, but these errors were encountered: