Gen. partnerAlgotech

PHP function checkdnsrr()

Check DNS records corresponding to a given Internet host name or IP address

|
September 11, 2019

Availability in PHP 4.0

Check DNS records corresponding to a given Internet host name or IP address

Parameters

Parameter Data type Default value Note
$host string not host may either be the IP address in dotted-quad notation or the host name.
$type string null type may be any one of: A, MX, NS, SOA, PTR, CNAME, AAAA, A6, SRV, NAPTR, TXT or ANY.

Return values

bool

true if any records are found; returns false if no records were found or if an error occurred.

Other resources

Official checkdnsrr documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.