HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
PHP Network Reference : Check DNS records
The checkdnsrr() function checks DNS records for type corresponding to host.
We can use the checkdnsrr() function to check our DNS record to verify the existence of a domain name or not.
Parameter | Description |
---|---|
host | Required. Specifies an IP address or host name to check |
type | Optional. Specifies the type. Can be one of the following:
|
Return Value: | TRUE if any records are found, FALSE otherwise |
---|---|
PHP Version: | 4.0+ |
PHP Changelog: | PHP 5.3: Now available on Windows platforms PHP 5.2.4: Added the TXT value of type |
❮ PHP Network Reference