05-03-2014, 05:03 AM
Basically, we have a list of subdomains that our resolver checks, then returns their IP.
There's only a single import, the socket module. This allows us to resolve the IPs. We'll need to define our subdomain list, and be able to request the site from the user.
Now, all we have to do left is check each subdomain. We can do so by using a for statement, you know, for x in y: return z? Something like that. We'll have an exception catcher just in-case this fails, but not just one. We want to pass our second exception because we would get an error while looking at the (sub)domain.
Simple enough right?
Hope I was of any use. (Note; this was tested against SL and my personal website. It should work perfectly fine, PM me if you need help)
~ Duubz
There's only a single import, the socket module. This allows us to resolve the IPs. We'll need to define our subdomain list, and be able to request the site from the user.
Hidden Content
Now, all we have to do left is check each subdomain. We can do so by using a for statement, you know, for x in y: return z? Something like that. We'll have an exception catcher just in-case this fails, but not just one. We want to pass our second exception because we would get an error while looking at the (sub)domain.
Hidden Content
Simple enough right?
Hidden Content
Hope I was of any use. (Note; this was tested against SL and my personal website. It should work perfectly fine, PM me if you need help)
~ Duubz