Created
February 27, 2021 07:11
-
-
Save frankier/412417b70c829b7a3a46fd66e3a99ab6 to your computer and use it in GitHub Desktop.
Export BIND-like formatting from linode-cli
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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