int dns_check_record ( string host [, string type ]) int dns_get_mx ( string hostname , array mxhosts [, array &weight ]) int dns_get_record ( string hostname [, int type [, array &authns , array &addtl ]]) There are three helpful Domain Name System (DNS) functions that allow you to check and retrieve specific information about other servers on the Internet or the local network. These are dns_check_record() , dns_get_mx() , dns_get_record() , and, sadly, all three are not supported on Windows. The first two from that list, dns_check_record() and dns_get_mx() , both work in roughly the same way - the former returns true if it finds a DNS record for the domain you specify in parameter one, and the latter returns true if it finds an MX record for the domain specified in parameter one, and places the full list of MX servers into a second parameter as an array. If you did not know already, the Domain Name System (DNS), is what turns...
Comments
Post a Comment