예제 #1
0
def main():
    resolver = DnsHelper('google.com')
    print resolver.get_mx()
    print resolver.get_ip('www.google.com')
    print resolver.get_ns()
    print resolver.get_soa()
    print resolver.get_txt()
    print resolver.get_spf()
    tresolver = DnsHelper('owasp.org')
    print tresolver.zone_transfer()
예제 #2
0
def main():
    resolver = DnsHelper('google.com')
    print(resolver.get_a("www.yahoo.com"))
    print(resolver.get_aaaa('baddata-cname-to-baddata-aaaa.test.dnssec-tools.org'))
    print(resolver.get_mx())
    print(resolver.get_ip('www.google.com'))
    print(resolver.get_txt("3rdparty1._spf.paypal.com"))
    print(resolver.get_ns())
    print(resolver.get_soa())
    print(resolver.get_txt())
    print(resolver.get_spf())
    tresolver = DnsHelper('google.com')
    print(tresolver.zone_transfer())
예제 #3
0
def main():
    resolver = DnsHelper('google.com')
    print(resolver.get_a("www.yahoo.com"))
    print(resolver.get_aaaa('baddata-cname-to-baddata-aaaa.test.dnssec-tools.org'))
    print(resolver.get_mx())
    print(resolver.get_ip('www.google.com'))
    print(resolver.get_txt("3rdparty1._spf.paypal.com"))
    print(resolver.get_ns())
    print(resolver.get_soa())
    print(resolver.get_txt())
    print(resolver.get_spf())
    #tresolver = DnsHelper('weightmans.com')
    tresolver = DnsHelper('google.com')
    print(tresolver.zone_transfer())