Prepare coreDNS for proxy tests

This commit is contained in:
Matej Bačo
2025-09-12 20:37:36 +02:00
parent cfbb6d9453
commit e508f049bf
6 changed files with 77 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
# Re-use public resolver to answer unknown queries
. {
forward . 1.1.1.1
}
# Zones configuration
webapp.com {
file /mnt/resources/webapp.com.zone
}
# Zones configuration
wrong-a-webapp.com {
file /mnt/resources/wrong-a-webapp.com.zone
}
+19
View File
@@ -0,0 +1,19 @@
; Nessessary setup
$ORIGIN webapp.com.
@ IN SOA ns1.webapp.com. hostmaster.webapp.com. (2025091201 7200 3600 1209600 3600)
@ IN NS ns1.webapp.com.
ns1 IN A 127.0.0.1
; Custom DNS records
@ IN A 203.0.0.1
stage IN CNAME cname.tests.appwrite.io
; No CAA record intentionally
stage-wrong-cname IN CNAME cname-wrong.tests.appwrite.io
stage-wrong-caa IN CNAME cname.tests.appwrite.io
stage-wrong-caa IN CAA 0 issue "unknown-issuer.org"
stage-correct-caa IN CNAME cname.tests.appwrite.io
stage-correct-caa IN CAA 0 issue "digicert.com"
@@ -0,0 +1,8 @@
; Nessessary setup
$ORIGIN wrong-a-webapp.com.zone.
@ IN SOA ns1.wrong-a-webapp.com.zone. hostmaster.wrong-a-webapp.com.zone. (2025091201 7200 3600 1209600 3600)
@ IN NS ns1.wrong-a-webapp.com.zone.
ns1 IN A 127.0.0.1
; Custom DNS records
@ IN A 203.0.0.5