PostgreSQL does not ship with a function to do DNS lookups.
Luckily, it is very easy to define new functions, with multiple language choices.
Here’s how you can make gethostbyaddr accessible via Python:
Code at GitHub Gist
This page was created on 2013-06-23
and is filed under PostgreSQL and Python.
if you have any comments,
perhaps by email?
Go to the home page for more content.