public function hasDnsRecord(callable $checkWith = null): bool
    {
        $checkdnsrr = null === $checkWith ? 'checkdnsrr': $checkWith;
        if ($this->parsedUri->isLocalHost()
          || $checkdnsrr($this->parsedUri->hostname(), 'A')
          || $checkdnsrr($this->parsedUri->hostname(), 'AAAA')
          || $checkdnsrr($this->parsedUri->hostname(), 'CNAME')) {
            return true;
        }

        return false;
    }