diff --git a/tests-extra/tests/ixfr/from_differences/05_wildcard/example.com.zone b/tests-extra/tests/ixfr/from_differences/05_wildcard/example.com.zone
new file mode 100644
index 0000000000000000000000000000000000000000..bbfd48287a30670a83ecb8e642df2a0f757d8d39
--- /dev/null
+++ b/tests-extra/tests/ixfr/from_differences/05_wildcard/example.com.zone
@@ -0,0 +1,19 @@
+$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
diff --git a/tests-extra/tests/ixfr/from_differences/05_wildcard/example.com.zone.1 b/tests-extra/tests/ixfr/from_differences/05_wildcard/example.com.zone.1
new file mode 100644
index 0000000000000000000000000000000000000000..ff6ad0a49b6d970bf8d50acda1a69cb59f68b1bd
--- /dev/null
+++ b/tests-extra/tests/ixfr/from_differences/05_wildcard/example.com.zone.1
@@ -0,0 +1,22 @@
+$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
diff --git a/tests-extra/tests/ixfr/from_differences/05_wildcard/example.com.zone.2 b/tests-extra/tests/ixfr/from_differences/05_wildcard/example.com.zone.2
new file mode 100644
index 0000000000000000000000000000000000000000..119c02114c6d9dc2c400b780290b7670a9cde12b
--- /dev/null
+++ b/tests-extra/tests/ixfr/from_differences/05_wildcard/example.com.zone.2
@@ -0,0 +1,24 @@
+$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
diff --git a/tests-extra/tests/ixfr/from_differences/05_wildcard/example.com.zone.3 b/tests-extra/tests/ixfr/from_differences/05_wildcard/example.com.zone.3
new file mode 100644
index 0000000000000000000000000000000000000000..d2d414fd95775a3d5032305d2a7f2beb85708db8
--- /dev/null
+++ b/tests-extra/tests/ixfr/from_differences/05_wildcard/example.com.zone.3
@@ -0,0 +1,29 @@
+$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
diff --git a/tests-extra/tests/ixfr/from_differences/05_wildcard/step.py b/tests-extra/tests/ixfr/from_differences/05_wildcard/step.py
new file mode 100644
index 0000000000000000000000000000000000000000..8d3630d531b51a280762edf410ddf80b0466c8be
--- /dev/null
+++ b/tests-extra/tests/ixfr/from_differences/05_wildcard/step.py
@@ -0,0 +1,35 @@
+#!/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()