Commit e1097c18 authored by Daniel Salzman's avatar Daniel Salzman

func-test: add test for out of zone records

parent d07ec931
......@@ -141,12 +141,12 @@ for test in sorted(included):
log.info("INTERRUPTED")
# Stop servers if still running.
if params.test:
params.test.stop()
params.test.end()
exit(1)
# Stop servers if still running.
if params.test:
params.test.stop()
params.test.end()
params.case_log.close()
......
#!/usr/bin/env python3
'''Test for dropping of out of zone records during reading of zone file'''
import dnstest
t = dnstest.DnsTest()
master = t.server("knot")
slave = t.server("bind")
zone = t.zone("out-of-zone.")
t.link(zone, master, slave)
t.start()
master.zones_wait(zone)
slave.zones_wait(zone)
t.xfr_diff(master, slave, zone)
t.end()
#!/usr/bin/env python3
'''Test for dropping of out of zone records during incoming XFR'''
import dnstest
t = dnstest.DnsTest()
master = t.server("bind")
slave = t.server("knot")
zone = t.zone("out-of-zone.")
t.link(zone, master, slave)
t.start()
master.zones_wait(zone)
slave.zones_wait(zone)
t.xfr_diff(master, slave, zone)
t.end()
$ORIGIN out-of-zone.
$TTL 3600
@ SOA dns1 hostmaster 2010111201 10800 3600 1209600 7200
NS dns1
NS dns2
MX 10 mail
dns1 A 192.0.2.1
AAAA 2001:DB8::1
dns2 A 192.0.2.2
AAAA 2001:DB8::2
mail A 192.0.2.3
AAAA 2001:DB8::3
fail. TXT "text"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment