dns/domains/035-evpn.burble.dn42.js
Simon Marsh 0de5b8e222
All checks were successful
continuous-integration/drone/push Build is passing
add borg.fr-par1
2023-04-29 22:47:28 +01:00

49 lines
1.4 KiB
JavaScript

//////////////////////////////////////////////////////////////////////////
// define domains
domain='evpn.burble.dn42';
D(
domain,
REG_NONE,
DnsProvider(PDNS),
DefaultTTL(3600),
NAMESERVER_TTL(86400),
NAMESERVER('ns.de-fra1.evpn.burble.dn42.'),
NAMESERVER('ns.ca-bhs2.evpn.burble.dn42.')
);
//////////////////////////////////////////////////////////////////////////
D_EXTEND(
domain,
// nameservers
AAAA('ns.de-fra1', 'fd42:4242:2601:331:72e8:bff:fe58:b51b'),
AAAA('ns.ca-bhs2', 'fd42:4242:2601:32d:72e8:bff:fe58:b51b'),
// BGP reflectors
AAAA('reflector.de-fra1', 'fd42:4242:2601:331:216:3eff:fed5:85f2'),
AAAA('reflector.ca-bhs2', 'fd42:4242:2601:32d:216:3eff:fed5:85f2'),
// borg backup
AAAA('borg.fr-par1', 'fd42:4242:2601:336:216:3eff:fe60:9eee'),
AAAA('borg.fr-par2', 'fd42:4242:2601:338:216:3eff:fe13:6db0'),
AAAA('borg.fr-par3', 'fd42:4242:2601:326:216:3eff:fe3f:e8d3'),
AAAA('borg.uk-lon2', 'fd42:4242:2601:32e:216:3eff:febf:de10'),
CNAME('borg', 'borg.fr-par2.evpn.burble.dn42.')
)
//////////////////////////////////////////////////////////////////////////
// hosts
// main nodes
nodes.forEach(function(n) {
var hex = (n[4] + 32).toString(16);
D_EXTEND(domain, AAAA(n[0], 'fd42:4242:2601:3'+hex+'::1'));
});
//////////////////////////////////////////////////////////////////////////
// end of file