Help with this error : Protocol wrong for this socket

B

bill.oldroyd

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,318
Members
47,998
Latest member
GretaCjy4

Latest Threads

Top