mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-19 12:01:26 +00:00
Update cheatsheets
This commit is contained in:
29
tldr/knotc
Normal file
29
tldr/knotc
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`
|
||||
Reference in New Issue
Block a user