Resolve domains to ip

Posted by alphix, 09-21-2008, 12:33 AM
Hi, I'm trying to write a script that resolves a hostname to ip and I've managed to come up with the following: However, I would like the $host to be read (via a loop?) from a list of domains (i.e. from domains.txt) where the domains are listed in such order in the file.. domain1.com domain2.com domain3.com How do I go about doing it?

Posted by DigitalLinx, 09-21-2008, 01:14 PM
Untested written in the quick reply box, hope it works

Posted by alphix, 09-23-2008, 06:04 AM
Hi, The output result was like this.. Please advise... thanks!

Ця відповідь Вам допомогла?

 Роздрукувати цю статтю

Також прочитайте

Include and run a script within a program

Posted by Sammyboy99, 02-18-2011, 06:53 PMSo I've made a program that executes a script the only...

I'm looking for a PHP PDF Invoice Maker Script

Posted by Freekers, 03-06-2007, 01:58 PMHello ! I'm looking for a cheap or free PHP PDF Invoice...

nsv streaming

Posted by kteo, 05-08-2007, 03:50 AMhello there...i have a shoutcast server installed in my...

VB question

Posted by hopesfall, 03-10-2010, 12:42 AMI have a string of asterisks "*****" which are in...

3-line PHP chat

Posted by Looie, 01-15-2008, 03:28 PMJust an idea I had http://www.ehwtf.com/stuffz/chat...