domainExists.php
Table of Contents
Functions
- domainExists() : bool
- Checks whether the given domain has valid DNS records (A, AAAA, or CNAME).
Functions
domainExists()
Checks whether the given domain has valid DNS records (A, AAAA, or CNAME).
domainExists(string $domain) : bool
Parameters
- $domain : string
-
The domain to check (e.g. "example.com").
Tags
Return values
bool —True if DNS records exist for the domain, false otherwise.