Prepare coreDNS for proxy tests

This commit is contained in:
Matej Bačo committed 2025-09-12 20:37:36 +02:00
1 parent cfbb6d9453
commit e508f049bf
6 files changed
+77 -2

No files matched your search

@@ -540,4 +540,15 @@ class ProxyCustomServerTest extends Scope
$this->assertEquals(0, $rules['body']['total']);
$this->assertCount(0, $rules['body']['rules']);
}
public function testRuleVerification(): void
{
// TODO: Implement
// wrong-a-webapp.com
// webapp.com
// stage.webapp.com
// stage-wrong-cname.webapp.com
// stage-wrong-caa.webapp.com
// stage-correct-caa.webapp.com
}
}
+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