Initial CoreDNS registration

This commit is contained in:
2026-05-14 14:20:51 -04:00
parent 03bf12ec07
commit 9250352a67
4 changed files with 395 additions and 30 deletions
+2
View File
@@ -6,6 +6,7 @@ const database = require('../database.js');
const dbConnection = database.db;
const Sequelize = require('sequelize');
const pageTitle = 'Domain Manager | Register New Domain';
const { RegisterNewDomain } = require('../coredns_bridge.js');
const blacklistedDomains = [
"dns.internal"
@@ -80,6 +81,7 @@ router.post('/domains/new', authMw.AllowIfAuthenticated, async(req, res, next) =
});
if(result !== undefined) {
RegisterNewDomain(fullDomain);
return res.redirect('/domains');
} else {
errors.push({message: 'Failed to register new domain.'})