'Get www.site.com and site.com and compare responses.
:param fuzzable_request: A fuzzable_request instance that contains
(among other things) the URL to test.'

@runonce(exc_class=RunOnce)
def discover(self, fuzzable_request):

    if (not self.SIMPLE_IP_RE.match(fuzzable_request.get_url().get_domain())):
        base_url = fuzzable_request.get_url().base_url()
        original_response = self._uri_opener.GET(base_url, cache=True)
        domain = fuzzable_request.get_url().get_domain()
        dns_wildcard_url = fuzzable_request.get_url().copy()
        root_domain = base_url.get_root_domain()
        if (len(domain) > len(root_domain)):
            domain_without_subdomain = '.'.join(domain.split('.')[1:])
            dns_wildcard_url.set_domain(domain_without_subdomain)
        else:
            dns_wildcard_url.set_domain(('foobar.' + domain))
        self._test_DNS(original_response, dns_wildcard_url)
        self._test_IP(original_response, domain)
