mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Rename get-zones formats as pretty/dsl/tsv to zone/js/tsv (#687)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
@@ -19,7 +19,7 @@ Syntax:
|
||||
dnscontrol get-zones [command options] credkey provider zone [...]
|
||||
|
||||
--creds value Provider credentials JSON file (default: "creds.json")
|
||||
--format value Output format: dsl pretty tsv nameonly (default: "pretty")
|
||||
--format value Output format: js zone tsv nameonly (default: "zone")
|
||||
--out value Instead of stdout, write to this file
|
||||
--ttl value Default TTL (0 picks the zone's most common TTL) (default: 0)
|
||||
|
||||
@@ -29,10 +29,10 @@ ARGUMENTS:
|
||||
zone: One or more zones (domains) to download; or "all".
|
||||
|
||||
FORMATS:
|
||||
--format=dsl dnsconfig.js format (not perfect, but a decent first draft)
|
||||
--format=nameonly Just print the zone names
|
||||
--format=pretty BIND Zonefile format
|
||||
--format=tsv TAB separated value (useful for AWK)
|
||||
--format=js dnsconfig.js format (not perfect, but a decent first draft)
|
||||
--format=zone BIND Zonefile format
|
||||
--format=tsv TAB separated value (useful for AWK)
|
||||
--format=nameonly Just print the zone names
|
||||
|
||||
When using `tsv`, the columns are:
|
||||
FQDN (the label with the domain)
|
||||
@@ -41,14 +41,14 @@ 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.
|
||||
The --ttl flag applies to zone and js formats.
|
||||
|
||||
EXAMPLES:
|
||||
dnscontrol get-zones myr53 ROUTE53 example.com
|
||||
dnscontrol get-zones gmain GANDI_V5 example.comn other.com
|
||||
dnscontrol get-zones cfmain CLOUDFLAREAPI all
|
||||
dnscontrol get-zones -format=tsv bind BIND example.com
|
||||
dnscontrol get-zones -format=dsl -out=draft.js glcoud GCLOUD example.com`,
|
||||
dnscontrol get-zones -format=js -out=draft.js glcoud GCLOUD example.com`,
|
||||
|
||||
|
||||
# Example commands
|
||||
|
Reference in New Issue
Block a user