LinuxCommandLibrary

knotc

Control knot DNS server.

TLDR

Start editing a zone

$ knotc zone-begin [zone]
copy


Set an A record with TTL of 3600
$ knotc zone-set [zone] [subdomain] 3600 A [ip_address]
copy


Finish editing the zone
$ knotc zone-commit [zone]
copy


Get the current zone data
$ knotc zone-read [zone]
copy


Get the current server configuration
$ knotc conf-read server
copy

Copied to clipboard