Browse Source

Catch all DNS errors, print IP and indicate that an error happend.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
Maximilian Wilhelm 8 years ago
parent
commit
1a78c3ad79
1 changed files with 2 additions and 0 deletions
  1. 2 0
      modules/ffpb.py

+ 2 - 0
modules/ffpb.py

@@ -111,6 +111,8 @@ class MsgHandler(SocketServer.BaseRequestHandler):
             return ptr
         except dns.resolver.NXDOMAIN:
             return ipaddr
+        except Exception:
+            return "E: " + ipaddr
 
 
 class ThreadingTCPServer(SocketServer.ThreadingMixIn, SocketServer.TCPServer):