def METHOD_NAME(self):
    response = b""
    try:
        s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
        s.connect(("", 53))
        s.send(binascii.unhexlify("6509012000010000000000010377777706676f6f676c6503636f6d00000100010000291000000000000000"))  # A www.google.com
        response = s.recv(512)
    except:
        pass
    finally:
        if response and b"google" in response:
            raise socket.error("another DNS service already running on '0.0.0.0:53'")