O'Reilly logo

Programming PHP, 3rd Edition by Peter MacIntyre, Kevin Tatroe, Rasmus Lerdorf

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

checkdnsrr

Synopsis

bool checkdnsrr(string host[, string type])

Searches DNS records for a host having the given type. Returns true if any records are found, and false if none are found. The host type can take any of the following values (if no value is specified, MX is the default):

A

IP address.

MX (default)

Mail exchanger.

NS

Name server.

SOA

Start of authority.

PTR

Pointer to information.

CNAME

Canonical name.

AAAA

128-bit IPv6 address.

A6

Defined as part of early IPv6 but downgraded to experimental.

SRV

Generalized service location record.

NAPTR

Regular expression based rewriting of domain names.

TXT

Originally for human-readable text. However, this record also carries machine-readable data.

ANY

Any of the above.

Check http://en.wikipedia.org/wiki/List_of_DNS_record_types for more details.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required