The issue was brought by one of our user here: http://projects.savoirfairelinux.net/issues/show/1841 When entering an host name with no dot, the normal behaviour with gethostbyname() is : "Resolver queries having fewer than ndots dots (default is 1) in them will be attempted using each component of the search path in turn until a match is found." from resolv.conf(5) When using PJSIP internal resolver, this does not happen, probably because of cross-platform compatibility concerns. However, getaddrinfo() seems to be available for all platforms in PJSIP. Hence, adding this new mechanism as a fallback method shouldn't break this idea. The proposed patch does the following: "A new fallback mechanism was added to the internal resolver in PJSIP. Now when DNS A fails after DNS SRV, getaddrinfo is used as a last fallback method." Please not that this patch isn't all ipv6 compliant specifically because of: srv->addr[srv->addr_cnt++].s_addr = ai.ai_addr.ipv4.sin_addr.s_addr; in dns_callback (srv_resolver.c:616) ---- Pierre-Luc Bacon development team for SFLPhone at savoirfairelinux.com -------------- next part -------------- A non-text attachment was scrubbed... Name: pjsip_resolve-getaddrinfo-fallback.diff Type: text/x-patch Size: 6457 bytes Desc: not available URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090717/4e7ad11b/attachment.diff>