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
DNS: resoving domain names fail #13
Comments
The same problem happens for me under Arch Linux with the official linphone server.
Linphone 3.6 on Linux Mint 17.x works as expected. |
After further investigation I believe that linphone has worked on 4th Dezember. At that time linphone 3.10.2-2 had been installed. |
The same issue was raised by me on the linphone-users mailing list, with some details from my debug window: http://lists.nongnu.org/archive/html/linphone-users/2017-01/msg00037.html As can be seen from the debug output, Linphone tries two DNS requests: one for an SRV record and one for an A/AAAA record – and both fail while I could show that these requests can be resolved on my system outside of Linphone. The workaround suggested by Russell Treleaven (which I didn’t understand at first because I had overlooked the A/AAAA request) was to add the A data to /etc/hosts. I am hoping that with a new Linphone version, I will be able to abandon this workaround. |
The problem is a buggy systemd-resolved. The workaround is to utilize any other resolver. For example mdns or dns-server from resolve.conf Try to change the hosts: line of /etc/nsswitch.conf from this one (for example) to this one: the "resolve" keyword seems to stay for a systemd-resolved |
As I wrote on linphone-users (link in my previous comment), I was able to resolve the SRV records using dig on the command line. So the statement that resolved is buggy seems a bit too general to me. |
This is not a bug in systemd-resolved. This is a bug in belle-sip's nsswitch.conf parser. This is completely valid syntax that
If you reorder the line like so
it chokes less hard and linphone seems to work. |
Are the developers aware of this now? I was considering opening a bug on the belle-sip Github project but that does not seem to be possible. |
We are following this thread and are investigating this issue. It indeed seems to be a bug in the nsswitch.conf parsing. Thanks for spotting this! |
Thanks to @jethrogb from me too, and to the developers! |
Alright, I have just commited a fix in belle-sip. It is now working correctly with the new default nsswitch.conf file from Arch Linux. |
Thanks to all pushing the issue forward, especially to @jethrogb and the developers. As the fix found its way to the arch repository and linphone is working again the issue is done. Thanks a lot again! |
With the update it’s working for me as well, I was able to remove the entries I had to add to /etc/hosts. I’ve now also checked Linphone’s debug output and was able to confirm that both the SRV and A/AAAA queries for my three SIP accounts are working correctly. Thanks! |
Thanks a lot! |
Recently linphone stopped working for me. Neither registration nor calling outwards is possible anymore. Calling results in an IO Error.
Starting
linphone --verbose
revealed:So it seems to be an DNS resolving problem. Indeed it's true that there is no SRV, but an A entry for sip.easybell.de and it had worked before (at least with linphone 3.9).
Actually there are more people experiencing the same issue at the Arch Linux forum.
Is this a bug or a configuration issue? Please let me know if I can provide you with more information.
Thanks a lot in advance.
Edit:
Linphone 3.10.2-3 on Arch Linux.
The text was updated successfully, but these errors were encountered: