|
Hi guys, I hope someone can quickly show me how to do :
ive got a list of domains in a .txt file
blaa.com
moo.com
test.com
etc.com
etc.com
etc.com
How can i get a php script to quickly run though this list and do a NSlookup ( or a dig ) to see what the nameservers are for the domains.
I need to check a massive list of domains and check where the nameservers are ( so i can can up stuff not pointing to my dns. )
I would assume something like:
foreach (domains.txt) {
host -t ns $domain;
echo "Doing $domain<br>";
echo $nameservers;
}
So it can print the Nameservers for each domain?
Any thoughts?
im hoping this may be a really easy script for a more advanced php programmer.
Thanks
Graham
|