socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

Νικόλαος Κούρας nikos.kouras at
Mon Jan 2 08:25:02 EST 2012

On 23 Δεκ 2011, 19:14, Νικόλαος Κούρας <nikos.kou... at> wrote:
> On 23 Äåê, 12:41, becky_lewis <bex.le... at> wrote:
> > Is there any possibility that you can tell us what the script actually
> > is or provide a code listing (use pastebin if it's big)?
> The script is about retrieving and storing the visitros hostnames to
> mysql database creating a log file.
> I dont know why this line host =
> socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0] fails sometimes
> and some other times works ok retrieving the hostnames correctly.
> What do you understand from the traceback?!

Please i need some help. My webpage doesn't work due to this error...

More information about the Python-list mailing list