[Twisted-Python] Finding peers.

Rene Dudfield illumen at yahoo.com
Tue Jul 8 07:08:20 EDT 2003


Tommi Virtanen wrote:

>On Mon, Jul 07, 2003 at 11:38:38PM +1000, Tim Allen wrote:
>  
>
>>DNS-SD (DNS based Service Discovery) is the easy part - it's just a  
>>standard way of organising DNS records such that a set of DNS queries  
>>can create a useful list of things to connect to. 'Implementing' DNS-SD  
>>support is not at all difficult, providing there exists an API to  
>>request PTR and SRV records, and providing you can add them to your DNS  
>>server.
>>    
>>
>
>	That exists, start reading from
>	twisted.internet.utils.SRVConnector.
>
>  
>
>>I haven't read the mDNS spec in detail, but the interaction between  
>>Twisted and the operating system's resolver seems complex. It'd be nice  
>>if Python had a DNS API more extensive than gethostbyname(), but it  
>>doesn't.
>>    
>>
>
>	That's why Twisted (and many other serious projects) are totally
>	ignoring the libc resolver. The API is just too limited.
>
>	Let me say that again. Twisted implements its own resolver that
>	talks UDP itself. gethostbyname() is just not usable.
>
>  
>
This is quite a supprising behaviour.  It should be printed in big 
flashing lights :)

There are many valid reasons to use the standard method.






More information about the Twisted-Python mailing list