'Check if http://ip(domain)/ == http://domain/'

def _test_IP(self, original_response, domain):

    try:
        ip_address = socket.gethostbyname(domain)
    except:
        return
    url = original_response.get_url()
    ip_url = url.copy()
    ip_url.set_domain(ip_address)
    try:
        modified_response = self._uri_opener.GET(ip_url, cache=True)
    except BaseFrameworkException as w3:
        msg = ('An    error    occurred    while    fetching    IP    address    URL    in        dns_wildcard    plugin:    "%s"' % w3)
        om.out.debug(msg)
    else:
        if fuzzy_not_equal(modified_response.get_body(), original_response.get_body(), 0.35):
            desc = 'The    contents    of    %s    and    %s    differ.'
            desc = (desc % (modified_response.get_uri(), original_response.get_uri()))
            i = Info('Default    virtual    host', desc, modified_response.id, self.get_name())
            i.set_url(modified_response.get_url())
            kb.kb.append(self, 'dns_wildcard', i)
            om.out.information(i.get_desc())
