Re: function that resolves IP addresses - Mailing list pgsql-general

From Richard Huxton
Subject Re: function that resolves IP addresses
Date
Msg-id 4356456E.1060103@archonet.com
Whole thread Raw
In response to function that resolves IP addresses  ("Marcel Gsteiger" <Marcel.Gsteiger@milprog.ch>)
List pgsql-general
Marcel Gsteiger wrote:
> Hi all
>
> Does anybody know how I could create a database function that accepts
> an INET parameter and reverse-lookups the hostname via DNS PTR lookup?
> Something like the dnsname command line utility in the djbdns package. I
> need this function for analyzing firewall logs stored in the database
> with ulogd.

You can write "unsafe" functions in any of the pl...u languages and also
pl/sh and "C". Should be simple enough in whatever language you're most
familiar with.

--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: "Jim Buttafuoco"
Date:
Subject: Re: function that resolves IP addresses
Next
From: "A. Kretschmer"
Date:
Subject: Re: function that resolves IP addresses