diff --git a/pages/common/knotc.md b/pages/common/knotc.md new file mode 100644 index 0000000000..7c8b025b15 --- /dev/null +++ b/pages/common/knotc.md @@ -0,0 +1,24 @@ +# knotc + +> Control knot DNS server. +> More information: . + +- Start editing a zone: + +`knotc zone-begin {{zone}}` + +- Set an A record with TTL of 3600: + +`knotc zone-set {{zone}} {{subdomain}} 3600 A {{ip_address}}` + +- Finish editing the zone: + +`knotc zone-commit {{zone}}` + +- Get the current zone data: + +`knotc zone-read {{zone}}` + +- Get the current server configuration: + +`knotc conf-read server`