fix url records

This commit is contained in:
William Harrison
2024-10-17 13:10:53 +11:00
committed by GitHub
parent ae905e36af
commit 6cf5aefc93
+8 -6
View File
@@ -71,12 +71,6 @@ for (var idx in domains) {
);
}
if (domainData.record.URL) {
commit[domainName].push(
CNAME(subdomainName, "redirect.is-a.dev.", proxyState)
);
}
// Handle MX records
if (domainData.record.MX) {
for (var mx in domainData.record.MX) {
@@ -119,6 +113,14 @@ for (var idx in domains) {
);
}
}
// Handle URL records
// Note: URL records are not actual DNS records, we have a server configured to support them instead.
if (domainData.record.URL) {
commit[domainName].push(
A(subdomainName, "192.0.2.1", proxy.on)
);
}
}
// Commit all DNS records