1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

get-zones: Implement --ttl flag for pretty and dsl (#654)

This commit is contained in:
Tom Limoncelli
2020-02-25 07:23:40 -05:00
committed by GitHub
parent 8b8f193afb
commit 7789b4dbdc
4 changed files with 31 additions and 15 deletions

View File

@@ -19,8 +19,9 @@ Syntax:
dnscontrol get-zones [command options] credkey provider zone [...]
--creds value Provider credentials JSON file (default: "creds.json")
--format value Output format: pretty dsl tsv nameonly (default: "pretty")
--format value Output format: dsl pretty tsv nameonly (default: "pretty")
--out value Instead of stdout, write to this file
--ttl value Default TTL (0 picks the zone's most common TTL) (default: 0)
ARGUMENTS:
credkey: The name used in creds.json (first parameter to NewDnsProvider() in dnsconfig.js)
@@ -40,6 +41,8 @@ When using `tsv`, the columns are:
Record Type (A, AAAA, CNAME, etc.)
Target and arguments (quoted like in a zonefile)
The --ttl flag applies to pretty and dsl formats.
EXAMPLES:
dnscontrol get-zones myr53 ROUTE53 example.com
dnscontrol get-zones gmain GANDI_V5 example.comn other.com