분류 php

dns_get_record() Function

컨텐츠 정보

  • 조회 651 (작성일 )

본문

<?php

 

    $hostname = "google.com";

 

    $records = dns_get_record($hostname, DNS_ALL);

 

    echo "The domain $hostname has the following DNS records: ";

 

    foreach($records as $record) {

 

        echo "{$record['type']} ";

 

    }

 

?> 

php