Hosts found:
"; foreach($records as $rec){ if(checkdnsrr($rec.$host.'.','A')) { # spit results. echo $rec.'.'.$host."
"; } } # Wildcard canonical names if($wc) { echo "Wildcards found:
"; for($a=0;$a<16;$a++){ if(checkdnsrr('ww'.$a.'.'.$host.'.','A')) { # wwX results. echo "ww".$a.'.'.$host."
"; } } for($b=0;$b<16;$b++){ if(checkdnsrr('www'.$b.'.'.$host.'.','A')) { # wwwXresults. echo "www".$b.'.'.$host."
"; } } for($c=0;$c<16;$c++){ if(checkdnsrr('bsd'.$c.'.'.$host.'.','A')) { # bsdXresults. echo "bsd".$c.'.'.$host."
"; } } for($d=0;$d<16;$d++){ if(checkdnsrr('a'.$d.'.'.$host.'.','A')) { # aXresults. echo "a".$d.'.'.$host."
"; } } for($e=0;$e<16;$e++){ if(checkdnsrr('b'.$e.'.'.$host.'.','A')) { # bXresults. echo "b".$e.'.'.$host."
"; } } for($f=0;$f<16;$f++){ if(checkdnsrr('mysql'.$f.'.'.$host.'.','A')) { # mysqlXresults. echo "mysql".$f.'.'.$host."
"; } } for($g=0;$g<16;$g++){ if(checkdnsrr('proxy'.$g.'.'.$host.'.','A')) { # proxyXresults. echo "proxy".$g.'.'.$host."
"; } } } } # example # host, wildcards true or leave empty QP("google.com","true"); */ ?>