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!

¿Fue útil la respuesta?

 Imprimir éste Artículo

Leer también

Connection Partially Encrypted

Posted by letnes, 09-16-2008, 11:03 PMI get the Connection Partially Encrypted message when I...

Linux: backup hard drive mounted to /backup

Posted by UberTricep, 11-10-2012, 07:49 AMI have a new dedicated server and I ordered a backup...

What is SAP?

Posted by TajByte, 03-22-2007, 05:02 AMWhat is SAP? Posted by 24x7os, 03-22-2007, 05:25...

scgiwrap

Posted by pilsentico, 04-22-2009, 03:41 PMHi i got an error when trying to run a CGI script on...

wordpress jquery

Posted by Seeking Knowledge, 10-16-2012, 08:43 AMHi there, I'm facing a problem with few...