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!

War diese Antwort hilfreich?

 Artikel drucken

Lesen Sie auch

Joomla HELP!

Posted by Snitz, 09-15-2008, 12:33 PMI'm having a weird problem here. I'm using MusicBox 2.0...

Website vs. Traceroute

Posted by libran, 09-17-2008, 06:11 PMHi guys, I'm having a problem with this. We are...

Database design question: Indexing

Posted by phoqoo, 01-15-2008, 12:38 PMFrom what I've read, indexing columns helps optimize DB...

P2V migration

Posted by webservermatrix, 04-23-2009, 06:41 AMHi, We have 2 servers SQL, Web & SM 4.x each with...

Setting up databases?

Posted by NotoriousKIM, 05-07-2007, 01:15 AMDoes anyone know anything about how to set up a mysql...