1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 10:42:07 +02:00
tldr/pages/common/knotc.md
koalp 5118ebc9f0
knotc: add page (#13130)
* knotc: add page

---------

Co-authored-by: spageektti <git@spageektti.cc>
2024-06-25 11:41:12 +05:30

452 B

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