HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

knotc — Control knot DNS server. More information: <https://www.knot-dns.cz/docs/latest/html/man_knotc.html>

Submitted by: @import:tldr-pages··
0
Viewed 0 times
servercommandknotccliknotcontroldnsmore

Problem

How to use the knotc command: Control knot DNS server. More information: <https://www.knot-dns.cz/docs/latest/html/man_knotc.html>.

Solution

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

Code Snippets

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

Context

tldr-pages: common/knotc

Revisions (0)

No revisions yet.