I am trying to make a PHP script that will check DNS servers for various RR such as...
'A' records
'MX' records
'SOA' record
'NS' records
etc etc. For example I'd like a function that did the equivalent of
'host -t NS test.com ns1.dns.com'
and returned an array that was a list of DNSs for test.com using the server ns1.dns.com for querying.
Is there a way in PHP to do this without resorting to exec()ing a binary (such as 'host' or 'dig') and ereg()ing the output?
Thanks in advance.
Ben.