python - gethostbyaddr Error only on 1 server -


running following on production server throws error

import socket socket.gethostbyaddr("<ip address>")   traceback (most recent call last):   file "<stdin>", line 1, in <module> socket.herror: [errno 1] unknown host 

running same code, same ip on different server works fine. idea cause this?


Comments

Popular posts from this blog

iis - ASP.Net Core CreatedAtAction in HttpPost action returns 201 but entire request ends with 500 -

gcc - Neither ld wrap nor LD_PRELOAD working to intercept system call -

ssh - Vagrant Windows - ssh_exchange_identification: read: Connection reset by peer -