Get Cname records with NetDNS or get_dns_record
问题 I'm trying get a list of CNAME records using PHP. This method used to work when I was hosting the code on my old Windows 7 machine, but I moved it to an Ubuntu machine (similar AMP stack setup), and it no longer returned CNAME records for the $url . I uploaded the code to a Windows server and still yet, no CNAME records. $records['cname'] = dns_get_record($url, DNS_CNAME); Not that I'm claiming the OS has much to do with anything, maybe I had something set up a certain way on my old machine