I want to get IP addresses of several domains to see if they share an IP address, what command will get the IP addresses for those domains?
I could run PING in an MS-DOS shell to get the associated IPs to domains, but that is a pain as I can only ping one site at a time to return back to me the associated IP. I'd have to enter "ping [www.domain.com]", copy the ip address, and paste it into a file for each domain. Quite tedious. I'd rather run a perl script to automate that for me.
Actually that's not what I needed, but thanks anyways :)
I finally did find the piece of code I needed after hours of looking and typing in bunches of different query strings. Here's the PERL commands that I needed:
...where the host variable is the known domain name.
The only problem is that when that code hits a domain that can't be reached, it inadvertantly kills the script before it can cycle through the rest of the domain names to check. The only way I can make it go through the list of domains withing dying is to delete the problem domains and I have to find those one at a time. It would be nice if the program was smart enough to ignor the domains it couldn't reach and continue on down through the list of domains and write out the gathered data to a text file. Perhaps I'll have to do more research and testing to see about pinging the domain for successful connection before running that command. I might have a way to do that--we'll see.
The use Net::Ping; method isn't so great either. whenever the value returned is not "1" it is timed out and the routine skips getting the IP address. Doing a manual ping via MS-DOS window still returns the IP address even if it does time out. I need to find a way to get that ip address and when it doesn't find it, it skips and moves to the next domain name in the list of records.
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
You have not yet logged in, or registered properly as a member
You are a member, but no longer have posting rights.
This is a private forum, for which you do not have permissions.
If you are a recent member, it's possible that you simply have not yet confirmed your account. Please
check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions
contained within.
If you are still experiencing problem, please read the
Login Assistance
Article for some advice on what may be causing your login not to work properly.