Skip to content

Instantly share code, notes, and snippets.

@frankier
Created February 27, 2021 07:11
Show Gist options
  • Save frankier/412417b70c829b7a3a46fd66e3a99ab6 to your computer and use it in GitHub Desktop.
Save frankier/412417b70c829b7a3a46fd66e3a99ab6 to your computer and use it in GitHub Desktop.
Export BIND-like formatting from linode-cli
linode-cli domains records-list $DOMAINID --json | jq -r '.[] | select(.type="A") | "\(if .name == "" then "@" else .name end)\tIN\t\(.type)\t\(if .type == "MX" then "\(.priority)\t" else "" end)\(.target)"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment