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

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

unity3d - Fatal error- Monodevelop-Unity failed to start -