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!

這篇文章有幫助嗎?

 列印本文

Also Read

Help wanted: ASP.NET / mono setup

Posted by raqtweak.com, 03-25-2007, 10:52 AMHi all, I'm looking for volounteers for the...

PlanetDomain API - Frustrating - Waiting for almost a decade!

Posted by MrLeN, 09-21-2008, 10:55 AMI have been a PlanetDomain reseller for about 8 years or so...

Hosting Related Press Releases

Posted by SoftWareRevue, 04-29-2009, 10:30 AM Post your press release for the WHT community...

disable php functions?

Posted by Calibaba, 09-15-2007, 06:28 PMDoes the below look good for a private server (linux,...

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...