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!

Дали Ви помогна овој одговор?

 Испечати

Исто така прочитајте

Premature data download disconnections from server. Challanging one!

Posted by astounding, 05-06-2007, 07:41 AMHi folks, Recently our network of servers all started...

FreeBSD CPUs

Posted by BostonGuru, 03-23-2007, 12:51 AMDoes anyone know how to bind a process (either when...

lxadmin dns template

Posted by paul-naama, 09-15-2007, 06:36 PMhello all. i just signed up for a new vps host...

Free host sites.

Posted by abbas, 09-17-2001, 06:01 AMHi. I want to start a free host site similar to...

brand new cpanel issue

Posted by ub3r, 01-15-2008, 12:24 AMWe got this email tonight, thought i'd share along with the...