Nikolay Gatilov
Nikolay Gatilov

Reputation: 66

Why reverse DNS resolution is not implemented in Twisted?

I am not found in twisted.names.client method for reverse dns resolution. Is possible to do this with twisted - without blocking (for response time)?

Is blocking the query with socket.gethostbyaddr()?

Upvotes: 3

Views: 143

Answers (1)

Glyph
Glyph

Reputation: 31860

Reverse DNS lookups should probably be a built-in part of the API, but they are quite easily implemented as a simple string transformation. In fact, the Twisted documentation uses reverse name lookups as its main way of explaining the client API. Have a look at that linked document and hopefully it answers your question.

Upvotes: 1

Related Questions