Help with this error : Protocol wrong for this socket

bill.oldroyd at bl.uk bill.oldroyd at bl.uk
Wed Aug 31 06:21:09 EDT 2005


I am running Python 2.4.1 on a HP Tru64 Unix system.

When try to carry out a DNS query as follows :

t = socket.getaddrinfo("labs.bl.uk",None)

I get the error message

socket.error: (41, 'Protocol wrong type for socket')

Am I right in thinking this is something to with the DNS lookup ?. Does
anyone have any idea what may be causing the problem ?.

Bill




More information about the Python-list mailing list