Skip to content

Instantly share code, notes, and snippets.

@numanturle
Created August 2, 2022 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save numanturle/ab37c405a353171e6863e9f63ef6fd30 to your computer and use it in GitHub Desktop.
Save numanturle/ab37c405a353171e6863e9f63ef6fd30 to your computer and use it in GitHub Desktop.
dns.php
<?php
$ac = file("kapsam.txt");
foreach($ac as $x){
$x = trim($x);
$x = str_replace(["https://","http://","www.","/"],"",$x);
$sdip = gethostbynamel($x);
if(isset($sdip[0])){
echo $sdip[0].PHP_EOL;
}else {
echo "IP COZUMLENMEDI".PHP_EOL;
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment