[Twisted-Python] Custom DNS server

Rudy Schockaert Rudy.Schockaert at pandora.be
Wed Jul 23 10:19:57 MDT 2003


Jp Calderone wrote:

>On Wed, Jul 23, 2003 at 11:15:39AM +0000, rudy.schockaert at pandora.be wrote:
>  
>
>>Hi,
>>
>>I need a DNS server that forwards all queries except for some predefined
>>maildomains. For these domains a record pointing to a central mailrelay
>>should be returned instead of the record that is present in Internet DNS.
>>
>>Is this possible/difficult to do with Twisted?
>>    
>>
>
>  This should be pretty easy.  I think the way to go about it would be to
>subclass t.names.client.Resolver and override lookupMailExchange(),
>returning the central relay address instead for the affected domains, and
>deferring (english meaning) to the parent implementation of the method for
>everyone else.
>  
>
I'll give it a try this way. It doesn't seem too complicated indeed.

>  
>
>>How should I interpret the 'unstable' in the twisted.names documentation?
>>    
>>
>
>  It refers to the API stability -- meaning the modules haven't reached a
>point where the developers are confident that no further changes which break
>user code relyong on the module will be made.  It doesn't reflect on how
>well the code actually works.
>
>  Jp
>  
>
Browsing through the names package I came to the conclusion that I'd 
better not do this on Windows.

/Rudy

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20030723/511643e0/attachment.html>


More information about the Twisted-Python mailing list