Getting All records in DNS zone file using PHP

Discussion in 'PHP' started by myl, Oct 1, 2010.

  1. #1
    Hi,

    I Want to fetch all the DNS records ( A,CNAME,NS,MX ) of a domain from the DNS zone file including sub-domains ( when i use dns_get_record() it only gives main domain records ) - what will the best and easiest way to fetch this one ?

    Thanks in advance for all your replies .....
     
    myl, Oct 1, 2010 IP
  2. stOK

    stOK Active Member

    Messages:
    114
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #2
    Use DNS_ALL as the 2nd parameter. It's slower than DNS_ANY but they say it is more reliable.
     
    stOK, Oct 3, 2010 IP