Skip to content

Sapistudio/SapiDomain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Check ip or domain against blacklists

use SapiStudio\Domain\DnsQuerifier;

DnsQuerifier::blacklistLookup($ipValue);

Get all DNS records for a domain

DnsQuerifier::hostLookup($domainName);

Check DMARC record

$dmarc = DnsQuerifier::make($domainName)
$dmarc->getDmarcRecord()
$dmarc->hasDmarc()

Check SPF record

$dmarc = DnsQuerifier::make($domainName)
$dmarc->getSpfRecord()
$dmarc->hasSpf()

Initialize querifier with a custom getter(dig or php)

//load all records
$querifier = DnsQuerifier::dnsLoad($domainName,Querifier::GETTER_PHP);//or Querifier::GETTER_DIG
//get txt entries
$querifier->getTxtRecords();

Whois data

use SapiStudio\Domain\Whois;

Whois::load('example.com')->getWhois();