From 14f3953cfbc265342d60b4b2190bd2b18b1eec7d Mon Sep 17 00:00:00 2001 From: Zicklag Date: Tue, 5 Nov 2024 11:48:03 -0600 Subject: [PATCH] fix: make sure the SOA is at the public user domain parent, not the app domain. --- src/lib/dns/server.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/dns/server.ts b/src/lib/dns/server.ts index 83422143..ce3c40a9 100644 --- a/src/lib/dns/server.ts +++ b/src/lib/dns/server.ts @@ -91,11 +91,11 @@ export async function startDnsServer() { const question = req.packet.questions[0]; if (question.type == 'SOA') { - if (question.name.endsWith(pubenv.PUBLIC_DOMAIN)) { + if (question.name.endsWith(pubenv.PUBLIC_USER_DOMAIN_PARENT)) { res.packet.flags = res.packet.flags | AUTHENTIC_DATA; return res.answer({ type: 'SOA', - name: pubenv.PUBLIC_DOMAIN, + name: pubenv.PUBLIC_USER_DOMAIN_PARENT, data: { mname: DNS_MASTER, rname: DNS_EMAIL @@ -115,7 +115,7 @@ export async function startDnsServer() { const question = req.packet.questions[0]; if (question.type == 'NS') { - if (question.name == pubenv.PUBLIC_DOMAIN) { + if (question.name == pubenv.PUBLIC_USER_DOMAIN_PARENT) { res.packet.flags = res.packet.flags | AUTHENTIC_DATA; return res.answer( DNS_NAMESERVERS.map((ns) => ({