Skip to content

Instantly share code, notes, and snippets.

View timchambers's full-sized avatar

Tim Chambers timchambers

View GitHub Profile
@timchambers
timchambers / fastmail-zone.js
Last active October 11, 2022 23:33
Generate a DNS zone file with the necessary zones for email hosting with fastmail
// A script to generate a zone file with all the email-related zones required by Fastmail
// Reference: https://www.fastmail.com/help/receive/domains-advanced.html#dnslist
//
// Run this script with node and copy the output to your clipboard
// $ node fastmail-zone yourdomain.com | pbcopy
//
// Paste into AWS Route53 "Import zone file" field when creating a new zone, etc.
const render = (DOMAIN) => {
console.log(`;; Fastmail-hosted zones (email only)