Checkdnssrr function in PHP
The type can be A, MX, NS, PTR,SOA, AAAA, CNAME, SRV,A6 NAPTR, TXT or ANY
This function may not work properly in Windows platform ( Older than PHP 5.3 ).
Here is the simple code to check DNS records.
MX record : getmxrr()We can get details of mail exchanger record ( MX record ) by using getmxrr() function.
If returns True of False based on the information found. Output is stored in $result as array.
It takes optional parameter weight
Here is an example.
Subscribe to our YouTube Channel here
This article is written by plus2net.com team. https://www.plus2net.com