- print_r: documentation ( source)
- dns_get_record: documentation ( source)
- strtolower: documentation ( source)
<?php
print_r( dns_get_record( strtolower( 'friends.ahsanshahzad.com' ) ) ); // ip: 148.251.93.108
print_r( dns_get_record( strtolower( 'ahsanshahzad.com' ) ) ); // ip: 148.251.93.108
//print_r( dns_get_record( $punycode->encode( strtolower( 'adilzulfiqar.com' ) ) , DNS_A ) ); // ip: 148.251.93.108
//print_r( dns_get_record( $punycode->encode( strtolower( 'Bücher.de' ) ) , DNS_AAAA ) ); // ipv6: 148.251.93.108
//var_dump( checkdnsrr( 'pageconfig.com' , 'A' ) ); // bool true||false
die;