use TS Record type to store host data
1 file changed, 14 insertions(+), 0 deletions(-)
changed files
M helpers.js → helpers.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) + }) + : [] + ) +}