Pekka Pessi wrote:
Hmm, seems like folks setting these things up would expect an application that uses DNS to use them. At least a lookup in /etc/hosts if DNS fails.On 12/11/06, Colin Whittaker <[EMAIL PROTECTED]> wrote:I've started using DNS, and it appears that I must specify the FQDN for the proxy or registrar, and that the DNS server must have any entry. Is there a way to get the sresolv module to use the /etc/hosts file ? I've setup nsswitch.conf to use /etc/hosts first: hosts: files dns But it doesn't appear to use /etc/hosts at all.You are right, it does not use /etc/hosts or nsswitch.conf (or /etc/host.conf) It doesn't appear sres_search() is used by the NUA stack.Also, it appears that it is not using the default domain in the /etc/resolve.conf Is this true ?That is correct. The default domain or search domains are only used with sres_search(). The SIP/SIPS URI are resolved using three-phase algorithm explained in RFC 3263 and with sres_query() which never uses search domains. This seems like a bad bug. If the DNS server ever looses contact, you basically loose all functionality until you bounce the stack.There are some problems with sres_query(), too (it abandons the search after the initial absolute query fails). I think I have seen this. If the DNS is not up when I start a REGISTER, I get a 503 error. Then when DNS is up, I try to REGISTER again, the stack never sends another DNS query and I get a 503 error. Forever. seem like a blocker to me. :-) Do you think this something easy to fix ? Should I start digging into it ? I don't think the URI should be modified. If the URI is entered as just a host, I think it is reasonable to expect that all servers will be able to resolve that host as entered in the URI.There are a few open issues with using /etc/hosts or search domains. At which point we should use /etc/hosts (or gethostbyname())? Should nua or nta expand a host name in URI to a FQDN before sending it to a network? I am using NUTAG_PROXY() and NUTAG_REGISTRAR(), which take URIs, but just specify hosts right ?This far we have left these questions unanswered and regarded domain names in URI as domain names, not host names. Here is where I really expected search domains to be used. |
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel