<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Jp Calderone wrote:<br>
<blockquote type="cite" cite="mid20030723143538.GA4915@intarweb.us">
  <pre wrap="">On Wed, Jul 23, 2003 at 11:15:39AM +0000, <a class="moz-txt-link-abbreviated" href="mailto:rudy.schockaert@pandora.be">rudy.schockaert@pandora.be</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">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?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  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.
  </pre>
</blockquote>
I'll give it a try this way. It doesn't seem too complicated indeed.<br>
<blockquote type="cite" cite="mid20030723143538.GA4915@intarweb.us">
  <pre wrap="">
  </pre>
  <blockquote type="cite">
    <pre wrap="">How should I interpret the 'unstable' in the twisted.names documentation?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  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
  </pre>
</blockquote>
Browsing through the names package I came to the conclusion that I'd
better not do this on Windows. <br>
<br>
/Rudy<br>
<br>
</body>
</html>