Fairly simple question (I think): I have a list of domains, and I want to loop through them, hitting their email and web servers, and determining the type of server software running. Something like this:
LOOP over domain list ... Socket connect with www.[domain-name] over Port 80 ... Get return handshake volley of server type > plug into array ... Close socket ... Socket connect with mail.[domain-name] over Port 25 ... Get return handshake volley of server type > plug into array ... Close socket ... END LOOP
I don't know of a discovery mechanism to derive the primary MX from a base domain name - probably not possible. I seem to remember opening and closing sockets needs some grace time (sleep?).
Any advice or example code would be much appreciated - thanks in advance.
-Dean