DnsClient

Provides a way to asynchronously lookup information from DNS servers.

Please consult the documentation for more information on DNS clients.

package

Default

Methods

__construct

__construct() 

Try to lookup the A (ipv4) or AAAA (ipv6) record for the given name. The first found will be used.

lookup( $arg0,  $arg1) : $this

Arguments

$arg0

string

$arg1

callable

Response

$this

a reference to this, so the API can be used fluently

Try to lookup the A (ipv4) record for the given name. The first found will be used.

lookup4( $arg0,  $arg1) : $this

Arguments

$arg0

string

$arg1

callable

Response

$this

a reference to this, so the API can be used fluently

Try to lookup the AAAA (ipv6) record for the given name. The first found will be used.

lookup6( $arg0,  $arg1) : $this

Arguments

$arg0

string

$arg1

callable

Response

$this

a reference to this, so the API can be used fluently

Try to resolve all A (ipv4) records for the given name.

resolveA( $arg0,  $arg1) : $this

Arguments

$arg0

string

$arg1

callable

Response

$this

a reference to this, so the API can be used fluently

Try to resolve all AAAA (ipv6) records for the given name.

resolveAAAA( $arg0,  $arg1) : $this

Arguments

$arg0

string

$arg1

callable

Response

$this

a reference to this, so the API can be used fluently

Try to resolve the CNAME record for the given name.

resolveCNAME( $arg0,  $arg1) : $this

Arguments

$arg0

string

$arg1

callable

Response

$this

a reference to this, so the API can be used fluently.

Try to resolve the MX records for the given name.

resolveMX( $arg0,  $arg1) : $this

Arguments

$arg0

string

$arg1

callable

Response

$this

a reference to this, so the API can be used fluently.

Try to resolve the NS records for the given name.

resolveNS( $arg0,  $arg1) : $this

Arguments

$arg0

string

$arg1

callable

Response

$this

a reference to this, so the API can be used fluently.

Try to resolve the PTR record for the given name.

resolvePTR( $arg0,  $arg1) : $this

Arguments

$arg0

string

$arg1

callable

Response

$this

a reference to this, so the API can be used fluently.

Try to resolve the SRV records for the given name.

resolveSRV( $arg0,  $arg1) : $this

Arguments

$arg0

string

$arg1

callable

Response

$this

a reference to this, so the API can be used fluently.

Try to resolve the TXT records for the given name.

resolveTXT( $arg0,  $arg1) : $this

Arguments

$arg0

string

$arg1

callable

Response

$this

a reference to this, so the API can be used fluently.

Try to do a reverse lookup of an IP address. This is basically the same as doing trying to resolve a PTR record but allows you to just pass in the IP address and not a valid ptr query string.

reverseLookup( $arg0,  $arg1) : $this

Arguments

$arg0

string

$arg1

callable

Response

$this

a reference to this, so the API can be used fluently.