Documentation

DOHGG extends DOHBase
in package

DOH resolver that uses Google as a backend

Table of Contents

Methods

dns()  : array<string, string>
Execute a DNS query
getStatus()  : int
Get the status for the last DNS query
IPtoDNS()  : string
Convert an IPv4 or IPv6 address to a DNS name valid for a PTR request.

Methods

dns()

Execute a DNS query

public static dns(string $domain, string $type[, string $how = 'ipv4' ]) : array<string, string>

Inherited from DOHBase::dns

Parameters
$domain : string

Name to resolve

$type : string

Record type to ask for

$how : string = 'ipv4'

(optional) Indicates whether the connection will be via IPv4 or IPv6 (default is IPv4)

Tags
throws
InvalidArgumentException

on no valid parameters

Return values
array<string, string>

Query result

getStatus()

Get the status for the last DNS query

public static getStatus() : int
Return values
int

Status for the last operacion

IPtoDNS()

Convert an IPv4 or IPv6 address to a DNS name valid for a PTR request.

public static IPtoDNS(string $ip) : string
Parameters
$ip : string

IP address to convert

Return values
string

DNS name representing the IP


        
On this page

Search results