Skip to content

get-zones argument parsing VS documentation mismatch #4235

@stefanwascoding

Description

@stefanwascoding

Describe the bug
The usage of the get-zones subcommand does not seem to work like described in https://docs.dnscontrol.org/commands/get-zones

To Reproduce

  1. According to docs dnscontrol get-zones --format=nameonly desec all should work as of v4.0 (note: "desec" does exist as entry in my creds.json)
  2. I get a return code of 1, and the output Arguments should be: credskey providername zone(s) (Ex: r53 ROUTE53 example.com)

Expected behavior

  • the command to return a list of domains registered with that provider

DNS Provider
irrelevant

Additional context

  • DNSControl version 4.37.1
  • I was previously successfully using dnscontrol get-zones --format=nameonly desec - all, this does also not work anymore, and returns with the same error message. Quoting the - or bash instead of zsh do not make a difference.
  • Only the format dnscontrol get-zones --format=nameonly desec DESEC all gives expected output, but also gives the hint: WARNING: To retain compatibility in future versions, please change "DESEC" to "-". See "https://docs.dnscontrol.org/commands/get-zones" - which as I said is not working for me
  • dnscontrol check-creds desec works as expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions