dnscontrol/docs/check-creds.md
2020-02-29 09:07:05 -05:00

38 lines
978 B
Markdown

---
layout: default
title: Check-Creds subcommand
---
# check-creds
This is a stand-alone utility to help verify entries in `creds.json`.
The command does a trivia operation to verify credentials. If
successful, a list of zones will be output. If not, hopefully you see
verbose error messages.
Syntax:
dnscontrol check-creds [command options] credkey provider
--creds value Provider credentials JSON file (default: "creds.json")
--out value Instead of stdout, write to this file
ARGUMENTS:
credkey: The name used in creds.json (first parameter to NewDnsProvider() in dnsconfig.js)
provider: The name of the provider (second parameter to NewDnsProvider() in dnsconfig.js)
EXAMPLES:
dnscontrol get-zones myr53 ROUTE53
dnscontrol get-zones --out=/dev/null myr53 ROUTE53
# Example commands
dnscontrol get-zone
# Developer Note
This command is not implemented for all providers.
To add this to a provider, implement the get-zones subcommand