mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-05 04:55:49 +02:00
knotc: add page (#13130)
* knotc: add page --------- Co-authored-by: spageektti <git@spageektti.cc>
This commit is contained in:
parent
f3d405a1e3
commit
5118ebc9f0
1 changed files with 24 additions and 0 deletions
24
pages/common/knotc.md
Normal file
24
pages/common/knotc.md
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# knotc
|
||||||
|
|
||||||
|
> Control knot DNS server.
|
||||||
|
> More information: <https://www.knot-dns.cz/docs/latest/html/man_knotc.html>.
|
||||||
|
|
||||||
|
- 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`
|
Loading…
Add table
Reference in a new issue