<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi there,<br>
I'm trying to do some reverse DNS lookups with twisted and I don't seem
to be able to get even the most simple of test cases to work. I've
tried it on a couple of different installations with the same results,
perhaps someone can help me? <br>
My test case is this:<br>
----------------------------------------------------------------------------------<br>
from twisted.names import client<br>
from twisted.internet import reactor<br>
def callback(a):<br>
&nbsp;&nbsp;&nbsp; print repr(a)<br>
<br>
client.lookupPointer('128.244.209.91.in-addr.arpa').addCallback(callback)<br>
reactor.run()<br>
----------------------------------------------------------------------------------<br>
<br>
The output I'm getting from this program is as follows:<br>
([&lt;RR name=128.244.209.91.in-addr.arpa type=PTR class=IN ttl=9777s
auth=False&gt;], [&lt;RR name=244.209.91.in-addr.arpa type=NS class=IN
ttl=8348s auth=False&gt;, &lt;RR name=244.209.91.in-addr.arpa type=NS
class=IN ttl=8348s auth=False&gt;], [&lt;RR
name=ns1.solsticehosting.net type=A class=IN ttl=8348s auth=False&gt;,
&lt;RR name=ns2.solsticehosting.net type=A class=IN ttl=8348s
auth=False&gt;])<br>
<br>
Nowhere in this output is the actual PTR record - the first entry looks
like it should be the PTR record, but the name is
'128.244.209.91.in-addr.arpa' - I'm expecting it to be
node2.digital-crocus.com. Can anyone clarify whether I'm doing
something wrong or if this is in fact a bug? <br>
<br>
Cheers,<br>
<br>
<br>
~Kieran Simkin<br>
<a href="http://digital-crocus.com/">Digital Crocus affordable web
hosting</a> - <a class="moz-txt-link-freetext" href="http://digital-crocus.com/">http://digital-crocus.com/</a><br>
<a href="http://slinq.com/">Personal Portfolio</a> - <a class="moz-txt-link-freetext" href="http://slinq.com/">http://slinq.com/</a><br>
</body>
</html>