mirror of
https://gitlab.nic.cz/knot/knot-dns.git
synced 2026-02-03 18:49:28 -05:00
25 lines
381 B
Python
25 lines
381 B
Python
#!/usr/bin/env python3
|
|
|
|
'''Test no NSEC3 records handling. '''
|
|
|
|
from dnstest.test import Test
|
|
|
|
t = Test()
|
|
|
|
master = t.server("knot")
|
|
|
|
# Zone setup
|
|
zone = t.zone("example.com.", storage=".")
|
|
|
|
t.link(zone, master)
|
|
|
|
t.start()
|
|
|
|
# Load zone
|
|
master.zone_wait(zone)
|
|
|
|
# Query non-existent name
|
|
resp = master.dig("bogus.example.com", "A", dnssec=True)
|
|
resp.check(rcode="NXDOMAIN")
|
|
|
|
t.end()
|