diff --git a/lib/controller/checks.py b/lib/controller/checks.py index 77146bfc7..0c4820e41 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -848,7 +848,7 @@ def checkNullConnection(): def checkConnection(suppressOutput=False): try: - socket.gethostbyname(conf.hostname) + socket.getaddrinfo(conf.hostname, None) except socket.gaierror: errMsg = "host '%s' does not exist" % conf.hostname raise sqlmapConnectionException, errMsg