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!

Bu mövzu kifayət qədər köməkçi oldu mu?

 Çap

Digər Başlıqlar

SSL Certificate works for folders?

Posted by Energizer Bunny, 01-13-2008, 06:10 AMHi, Say i have domain zzzzz.com and have some...

FTP Question - Limiting types of Access

Posted by webtender, 03-29-2008, 11:17 PMHello, Is it possible to setup ftp accounts that have...

[php] Need advices on writing a counter script

Posted by kennethinvest, 09-22-2008, 06:04 PMhello, I would like to make a very simple couter...

Problems with mod_security on CentOS 64

Posted by TheMatrix, 06-28-2008, 11:41 PMHello- I've been having the hardest time getting...

Problem with "." in Windows 2003 Folder

Posted by boonchuan, 06-28-2008, 07:45 AMI had a folder abc.xyz in Windows 2000 server and it had...