From 5118ebc9f023de4e4a2a0aecfdb4b480f778a81c Mon Sep 17 00:00:00 2001 From: koalp <49921473+koalp@users.noreply.github.com> Date: Tue, 25 Jun 2024 08:11:12 +0200 Subject: [PATCH] knotc: add page (#13130) * knotc: add page --------- Co-authored-by: spageektti --- pages/common/knotc.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/knotc.md diff --git a/pages/common/knotc.md b/pages/common/knotc.md new file mode 100644 index 000000000..7c8b025b1 --- /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`