all repos — dns @ b253541e11a12656ef724f633e649e6f80389f7a

DNS records for my domains, managed via dnscontrol

remove unused functions

Alin
commit

b253541e11a12656ef724f633e649e6f80389f7a

parent

3db902650f286b3630d92fe06c1f5a3d75d877bf

1 file changed, 1 insertion(+), 30 deletions(-)

changed files
M dnsconfig.jsdnsconfig.js
@@ -75,21 +75,6 @@ return records
} /** - * @description point name to target with an ALIAS or CNAME record - * @param {string} name - * @param {string} target - * @param {RecordModifier[]} [modifiers] - */ -function link(name, target, modifiers) { - if (modifiers == null || modifiers.length === 0) { - modifiers = [] - } - - var rec = name === '@' ? ALIAS : CNAME - return rec.bind(null, name, ensureAbsolute(target)).apply(null, modifiers) -} - -/** * @param {string} domain * @param {string} verification * @param {string[]} [extras]
@@ -120,20 +105,7 @@ return CNAME.bind(CNAME, source, target).apply(CNAME, recordModifiers)
}) } -/** - * @param {string} subdomain - * @param {string[]} targets - */ -function delegate(subdomain, targets) { - return targets.map(function (target) { - return NS(subdomain, target) - }) -} - -var nsHosts = [ - "ns3", - "ns4", -].map(function (hostname) { +var nsHosts = ['ns3', 'ns4'].map(function (hostname) { return hostname + '.vpsfree.cz.' })
@@ -145,7 +117,6 @@ var soa = SOA('@', 'ns3.vpsfree.cz.', 'hostmaster.alanpearce.eu.', 43200, 3600, 2419200, 120)
// Providers: -var RegistrarNone = NewRegistrar('none') var RegistrarOVH = NewRegistrar('ovh') var PowerDNS = NewDnsProvider('powerdns', { 'zone_kind': 'Master',