示例#1
0
def test_delegation_from_nsec3_to_unsigned_zone(forwarder, tcp):
    return answer_checker.send_and_check(
        NONEXISTENT_DS_DELEGATION_NSEC3_QUERY,
        NONEXISTENT_DS_DELEGATION_NSEC3_ANSWER,
        forwarder,
        ALL,
        tcp=tcp)
示例#2
0
def test_remote_tcp_53(server):
    return answer_checker.send_and_check(QUERY,
                                         ANSWER,
                                         server,
                                         ALL - {"authority"},
                                         tcp=True,
                                         unset_flags=[dns.flags.AD])
示例#3
0
def test_nonexistent_delegation_from_nsec3(forwarder, tcp):
    return answer_checker.send_and_check(
        NONEXISTENT_DELEGATION_FROM_NSEC3_QUERY,
        NONEXISTENT_DELEGATION_FROM_NSEC3_ANSWER,
        forwarder,
        ALL,
        tcp=tcp,
        unset_flags=[dns.flags.AA])
示例#4
0
def test_supports_simple_answers(forwarder, tcp):
    return answer_checker.send_and_check(SIMPLE_QUERY,
                                         SIMPLE_ANSWER,
                                         forwarder,
                                         ALL - {"additional", "authority"},
                                         tcp=tcp)
示例#5
0
def test_nonexistent_type_nsec(forwarder, tcp):
    return answer_checker.send_and_check(NONEXISTENT_TYPE_NSEC_QUERY,
                                         NONEXISTENT_TYPE_NSEC_ANSWER,
                                         forwarder,
                                         ALL,
                                         tcp=tcp)
示例#6
0
def test_zone_version(forwarder):
    return answer_checker.send_and_check(VERSION_QUERY, VERSION_ANSWER,
                                         forwarder,
                                         ALL - {"additional", "authority"})
示例#7
0
def test_unknown_rrtype(forwarder, tcp):
    return answer_checker.send_and_check(UNKNOWN_TYPE_QUERY,
                                         UNKNOWN_TYPE_ANSWER,
                                         forwarder,
                                         ALL - {"additional", "authority"},
                                         tcp=tcp)
示例#8
0
def test_negative_nsec3_answers(forwarder, tcp):
    return answer_checker.send_and_check(NSEC3_NEGATIVE_QUERY,
                                         NSEC3_NEGATIVE_ANSWER,
                                         forwarder,
                                         HEADER | {"authority"},
                                         tcp=tcp)
示例#9
0
def test_supports_DS(forwarder, tcp):
    return answer_checker.send_and_check(DS_QUERY,
                                         DS_ANSWER,
                                         forwarder,
                                         HEADER | {"answerrrsigs"},
                                         tcp=tcp)
示例#10
0
def test_supports_DNSKEY(forwarder, tcp):
    return answer_checker.send_and_check(DNSKEY_QUERY,
                                         DNSKEY_ANSWER,
                                         forwarder,
                                         ALL - {"additional", "authority"},
                                         tcp=tcp)
示例#11
0
def test_returns_RRSIG(forwarder, tcp):
    return answer_checker.send_and_check(RRSIG_QUERY,
                                         RRSIG_ANSWER,
                                         forwarder,
                                         HEADER | {"answerrrsigs"},
                                         tcp=tcp)
示例#12
0
def test_zone_version(server):
    return answer_checker.send_and_check(VERSION_QUERY,
                                         VERSION_ANSWER,
                                         server,
                                         ALL - {"authority"},
                                         unset_flags=[dns.flags.AD])
示例#13
0
def test_udp_fragmentation_truncated(server):
    return answer_checker.send_and_check(QUERY_WITH_SMALL_PAYLOAD,
                                         TRUNCATED_ANSWER,
                                         server,
                                         ALL - {"authority"},
                                         unset_flags=[dns.flags.AD])
示例#14
0
def test_udp_fragmentation(server):
    return answer_checker.send_and_check(LONG_QUERY,
                                         LONG_ANSWER,
                                         server,
                                         ALL - {"authority"},
                                         unset_flags=[dns.flags.AD])