> For XMPP it seem the RFC suggests:
> SRV query ... (see above) ... fallback to A record (see above)
> To me it seems as if the fallback to A record/hosts-file never happens.

for what particular case? For the case of record-not-found —
reasonable; for the case of icmp-unreachable… see below.

> Apropos timeout: the query to my non-existing local nameserver does
> _not_ timeout - the program receives an 'ICMP Port unreachable'.
> Retrying doesn't make sense with such an error response.

Sample case: system boot (in case xmpp client managed to start before
the DNS server). Also unlikely but also could be quite problematic.

>  if not servers:
>      servers.append(('127.0.0.1', dns.PORT))

A bit of svn blame poking leads to:
r12604 | exarkun | 2004-11-26 09:32:40 +0300 (Fri, 26 Nov 2004) | 2 lines
Handle empty and missing resolv.conf files as though 127.0.0.1 were
configured as the resolver

I presume you have empty /etc/resolv.conf (or… well, trace that
parseConfig to see what is going on), and something in Twisted doesn't
parse the nsswitch.conf (or does but also does parseConfig).
(assuming it's that line that causes it to query dns on localhost)
_______________________________________________
Twisted-Jabber mailing list
[email protected]
https://mailman.ik.nu/mailman/listinfo/twisted-jabber

Reply via email to