Codem\DomainValidation\CloudflareDnsOverHttps
The Cloudflare DNS over HTTPS (DOH) validator can perform various DNS looksup on domains and domain parts of email addresses Note that their specification follows Google's - "For lack of an agreed upon JSON schema for DNS over HTTPS in the IETF, Cloudflare has chosen to follow the same schema as Google’s DNS over HTTPS resolver." ... but that there is no accepted standard at the moment
Synopsis
class CloudflareDnsOverHttps
extends AbstractDomainValidator
{
- // members
- protected $domain;
- protected string $protocol = "https";
- protected string $host = "cloudflare-dns.com";
- protected string $path = "/dns-query";
- // Inherited members from AbstractDomainValidator
- protected $domain;
- protected string $protocol;
- protected string $host;
- protected string $path;
- protected integer $timeout;
- // methods
- public void performLookup()
- // Inherited methods from AbstractDomainValidator
- public abstract void performLookup()
- protected void getCacheDir()
- protected void getCachePlugin()
- protected void doGet()
- public void setDomain()
- public void hasMxRecord()
Hierarchy
Members
protected
- $domain
- $domain
- $host
- $host
- $path
- $path
- $protocol
- $protocol
- $timeout
Methods
public
Inherited from Codem\DomainValidation\AbstractDomainValidator
protected
- doGet() — Do a GET request
- getCacheDir()
- getCachePlugin() — Refer: http://guzzle3.readthedocs.io/plugins/cache-plugin.html