DNS/実装/python/dnslib/lame_check/cf.pyについて、ここに記述してください。 {{{#!python #python3 import TLD from CF import CFH tldns = TLD.TLD() cf = CFH() print ('cf ns#', len(cf.cf_ns)) import fileinput for line in fileinput.input(): # domain candidate if line[0] == "#" : continue d = line[:-1] tld_a = tldns.getaddress(d) # get some tld server A nslist = tldns.delegation(tld_a,d).keys() # delegation if nslist: # not empty cf.checkns(d, set(nslist)) # check delegation }}}