Na brzinu sam sklepao skriptu koja mi pomogla. Možda još kome zatreba.
Pozdrav!
Kod: Označi sve
from socket import gethostbyname
domains = [
'dyndns.biz',
'dyndns.tv',
'dyndns.info',
'dyndns.org',
'dyndns-at-home.com',
'dyndns-at-work.com',
'dyndns-free.com',
'dyndns-home.com',
'dyndns-office.com',
'dyndns-remote.com',
'dyndns-work.com',
'dyndns-web.com',
'dyndns-blog.com',
'dyndns-mail.com',
'dyndns-wiki.com',
'dyndns-server.com',
'dyndns-pics.com',
'dyndns-ip.com',
'bounceme.net',
'hopto.org',
'myftp.biz',
'myftp.org',
'myvnc.com',
'no-ip.biz',
'no-ip.info',
'no-ip.org',
'redirectme.net',
'servebeer.com',
'serveblog.net',
'servecounterstrike.com',
'serveftp.com',
'servegame.com',
'servehalflife.com',
'servehttp.com',
'servemp3.com',
'servepics.com',
'servequake.com',
'sytes.net',
'zapto.org']
dump = ['69.65.19.116', '69.65.19.117']
def lookup(sub):
for domain in domains:
address = sub+"."+domain
try:
ip = gethostbyname(address)
if ip not in dump:
print address+" - "+ip
except:
pass
while True:
sub = raw_input("Input subdomain name(q for QUIT): ")
if sub == "q": break
lookup(sub)