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!

Hjalp dette svar dig?

 Print denne artikel

Læs også

weird disk usage shown in server

Posted by prashant1979, 09-18-2008, 08:28 AMHello, I am seeing a weird disk usage in one of my...

httpd optimization.

Posted by NWSTech, 04-22-2009, 09:57 AMevening all, right ive got a server thats getting...

Limit concurrent users in MySQL

Posted by ThaiZone, 01-15-2008, 02:49 AMI try to search and not found the solutions to limit...

let ppl play an mp3 but not let them access the file

Posted by bambinou, 11-10-2012, 09:32 AMHi, I have a folder with many mp3s, I do not want...

Command for tranferring files through wget

Posted by ramdak5000, 07-16-2007, 10:24 PMI am trying to move over a client from Verio's hosting...