No description
Find a file
2022-10-24 17:55:33 +02:00
scripts Mostly working, except update 2022-10-24 17:49:22 +02:00
.gitignore Initial commit 2022-10-24 09:10:09 +00:00
LICENSE Initial commit 2022-10-24 09:10:09 +00:00
README.md Update readme 2022-10-24 17:55:33 +02:00
setup.py Add setup tools 2022-10-24 15:16:19 +02:00
stdeb.cfg Add setup tools 2022-10-24 15:16:19 +02:00

knotctl

This is a commandline tool for knotapi

https://gitlab.nic.cz/knot/knot-dns-rest

Usage

usage: knotctl [-h] [--json | --no-json] {add,config,delete,list,update} ...

positional arguments:
  {add,config,delete,list,update}

options:
  -h, --help            show this help message and exit
  --json, --no-json

ADD

usage: knotctl add [-h] -d DATA -n NAME -r RTYPE -t TTL -z ZONE

options:
  -h, --help            show this help message and exit
  -d DATA, --data DATA
  -n NAME, --name NAME
  -r RTYPE, --rtype RTYPE
  -t TTL, --ttl TTL
  -z ZONE, --zone ZONE

CONFIG

usage: knotctl config [-h] [-b BASEURL] [-p PASSWORD] [-u USERNAME]

options:
  -h, --help            show this help message and exit
  -b BASEURL, --baseurl BASEURL
  -p PASSWORD, --password PASSWORD
  -u USERNAME, --username USERNAME

DELETE

usage: knotctl delete [-h] [-d DATA] [-n NAME] [-r RTYPE] -z ZONE

options:
  -h, --help            show this help message and exit
  -d DATA, --data DATA
  -n NAME, --name NAME
  -r RTYPE, --rtype RTYPE
  -z ZONE, --zone ZONE

LIST

usage: knotctl list [-h] [-d DATA] [-n NAME] [-r RTYPE] [-z ZONE]

options:
  -h, --help            show this help message and exit
  -d DATA, --data DATA
  -n NAME, --name NAME
  -r RTYPE, --rtype RTYPE
  -z ZONE, --zone ZONE

UPDATE

usage: knotctl update [-h] -d DATA -n NAME -r RTYPE -t TTL -z ZONE

options:
  -h, --help            show this help message and exit
  -d DATA, --data DATA
  -n NAME, --name NAME
  -r RTYPE, --rtype RTYPE
  -t TTL, --ttl TTL
  -z ZONE, --zone ZONE