Skip to content
Snippets Groups Projects
Commit 804398aa authored by Daniel Salzman's avatar Daniel Salzman
Browse files

func-tests: add ixfr wildcard test

parent d7e38e3e
No related branches found
No related tags found
No related merge requests found
$ORIGIN example.com.
$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
a.wild AAAA ::2
b.wild A 1.1.1.1
\ No newline at end of file
$ORIGIN example.com.
$TTL 3600
@ SOA dns1 hostmaster 2010111202 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
a.wild AAAA ::2
b.wild A 1.1.1.1
; Add one wildcard record.
*.wild AAAA ::3
\ No newline at end of file
$ORIGIN example.com.
$TTL 3600
@ SOA dns1 hostmaster 2010111203 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
a.wild AAAA ::2
b.wild A 1.1.1.1
*.wild AAAA ::3
; Add wildcard record.
*.wc A 2.2.2.2
\ No newline at end of file
$ORIGIN example.com.
$TTL 3600
@ SOA dns1 hostmaster 2010111204 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
a.wild AAAA ::2
b.wild A 1.1.1.1
*.wild AAAA ::3
*.wc A 2.2.2.2
; Add one record under wildcard with the same record type.
a.wc A 3.3.3.3
; Add one record under wildcard with the different record type.
b.wc AAAA ::4
\ No newline at end of file
#!/usr/bin/env python3
'''Add wildcard records.'''
def run(i):
i.test.start()
i.check()
i.check_rec("a.wild", "AAAA", "::2")
i.check_rec("b.wild", "A", "1.1.1.1")
i.check_rec("b.wild", "AAAA", nordata="::3")
i.check_rec("*.wild", "ANY", rcode="NXDOMAIN")
i.check_rec("*.wc", "ANY", rcode="NXDOMAIN")
i.check(1)
i.check_rec("a.wild", "AAAA", "::2")
i.check_rec("b.wild", "A", "1.1.1.1")
i.check_rec("b.wild", "AAAA", nordata="::3")
i.check_rec("c.wild", "AAAA", "::3")
i.check_rec("*.wild", "AAAA", "::3")
i.check(2)
i.check_rec("a.wc", "A", "2.2.2.2")
i.check_rec("b.wc", "A", "2.2.2.2")
i.check_rec("b.wc", "AAAA", nordata="::4")
i.check_rec("*.wc", "A", "2.2.2.2")
i.check(3)
i.check_rec("a.wc", "A", "3.3.3.3")
i.check_rec("b.wc", "A", nordata="2.2.2.2")
i.check_rec("b.wc", "AAAA", "::4")
i.check_rec("c.wc", "A", "2.2.2.2")
i.check_rec("*.wc", "A", "2.2.2.2")
i.test.end()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment