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;
    }
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;
    }
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 ; }
checks whether host of uri is listed in dns

@param   callable  $checkWith  optional  function to check dns record with
@return  bool
checks whether host of uri is listed in dns