all repos — dns @ ee65fd1640b90815954d260979a7116c8f15260c

DNS records for my domains, managed via dnscontrol

use TS Record type to store host data

Alin
commit

ee65fd1640b90815954d260979a7116c8f15260c

parent

002833547c73fe8c0e88954a305b01dd0617e775

1 file changed, 14 insertions(+), 0 deletions(-)

changed files
M helpers.jshelpers.js
@@ -70,3 +70,17 @@ }),
CNAME('sig1._domainkey', 'sig1.dkim.' + domain + '.at.icloudmailadmin.com.'), ] } + +/** + * @param {string} name + * @param {HostConfig} host + */ +function mkHostRecords(name, host) { + return [A(name, host.v4), AAAA(name, host.v6)].concat( + host.sshfp + ? host.sshfp.map(function (sshfp) { + return SSHFP(name, sshfp.algo, sshfp.type, sshfp.fingerprint) + }) + : [] + ) +}