I'm working on creating a new type of email protocol, and in order to do that I had to set up an SRV DNS record for my domain.
In promoting this protocol, I'll need to be able to discover if a given host uses my system (and if not fall back to an older protocol).
So, is there a way to pull a DNS record (such as SRV) using PHP without using a PECL extension or running it through the linux command line (I already know I can ob_start() and system("host -t SRV hostname") but I'm looking for a better way, if it exists.)