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!

Cette réponse était-elle pertinente?

 Imprimer cet article

Consultez aussi

Create A Real Time Web Page

Posted by batulang, 08-14-2006, 06:34 AMHi Everybody, I was thinking is that possible to...

Any PHP library to create .ico? Or just to convert a PNG to ICO?

Posted by yangyang2036, 09-21-2008, 09:17 PMSearched google with nothing relevant. Posted by...

user avahi

Posted by sherwood, 04-22-2009, 11:59 AMHi, I seem to be getting emails from LFD about the...

Reselling SSL certificates

Posted by luxor, 09-28-2001, 11:11 AMHi: Does anyone know which company is the most...

Where can i use command line instead of gui in cpanel?

Posted by sash_007, 03-09-2010, 08:46 AMHello friends, Just wondering whether i can use...