RNDC-CONFGEN(8)
πΈ RNDC-CONFGEN(8) β the rndc key generation tool, bestie edition πΈ
okay so you're reading the rndc-confgen page from BIND 9 β yes that BIND 9, the DNS one. Sit down, grab a strawberry π, we're gonna make keys together.
β¨ NAME β¨
rndc-confgen β literally the rndc key generation tool. that's the whole vibe. it makes keys, it makes config. icon behavior.
π SYNOPSIS π
rndc-confgen [-a] [-A algorithm] [-b keysize] [-c keyfile] [-h] [-k
keyname] [-p port] [-s address] [-t chrootdir] [-u user]
no subcommands, no drama. just flags. slay π
π¦ DESCRIPTION π¦
So rndc-confgen generates configuration files for rndc. Think of it as the glow-up shortcut β instead of hand-writing the rndc.conf file and the matching controls and key statements in named.conf all by yourself (huge effort, lowkey exhausting), you just let this little icon do it.
OR β and this is the fun part β you can run it with the -a option and it'll set up a rndc.key file, which means you don't need a rndc.conf file or a controls statement at all. no cap, it's that easy. β¨
π OPTIONS π
-aβ this one sets up automaticrndcconfiguration. it creates a file at/etc/bind/rndc.keythat gets read by bothrndcandnamedon startup. thatrndc.keyfile defines a default command channel and authentication key, sorndccan talk tonamedon the local host with zero further configuration. main character energy honestly.
but bestie, listen: if you need a fancier setup than whatrndc-confgen -agives you β say, ifrndcis gonna be used remotely β runrndc-confgenwithout-aand set uprndc.confandnamed.confas directed. don't skip this. π
-Aalgorithm β picks the algorithm for the TSIG key. your choices are, alphabetically and also iconically:hmac-md5,hmac-sha1,hmac-sha224,hmac-sha256,hmac-sha384, andhmac-sha512. the default ishmac-sha256. she's the default for a reason π-bkeysize β the size of the authentication key, in bits. it has to be between 1 and 512 bits, and the default is the hash size. tiny keys exist but likeβ¦ why.-ckeyfile β used with-ato specify an alternate location forrndc.key. basically "not that folder, this folder." π-hβ prints a short summary of the options and arguments torndc-confgen. the little "help me help you" flag.-kkeyname β the key name of therndcauthentication key. it must be a valid domain name, and it will be sanitized using the domain name semantics. the default isrndc-key. don't try to be cute with invalid names, she will fix them for you.-pport β the command channel port wherenamedlistens for connections fromrndc. default is953. classic.-qβ prevents printing the written path in automatic configuration mode. quiet queen behavior, she just does the thing and doesn't announce it π€«-saddress β the IP address wherenamedlistens for command-channel connections fromrndc. default is the loopback address127.0.0.1. home sweet home.-tchrootdir β used with-ato specify a directory wherenamedruns chrooted. an additional copy of therndc.keygets written relative to this directory, so the chrootednamedcan actually find it. one key, two homes, both valid π«Ά-uuser β used with-ato set the owner of the generatedrndc.keyfile. heads up though: if-tis also specified, only the file in the chroot area has its owner changed. noted. β
π EXAMPLES π
Wanna let rndc work with absolutely zero manual configuration? run:
rndc-confgen -a
And if you want a sample rndc.conf file printed out, plus the corresponding controls and key statements to manually paste into named.conf, run:
rndc-confgen
that's it. that's the whole ritual. π₯
π SEE ALSO π
rndc(8)rndc.conf(5)named(8)- BIND 9 Administrator Reference Manual.
go read those too, iykyk π
π§ Author π§
Internet Systems Consortium
π Copyright π
2026, Internet Systems Consortium
okay bestie that's the whole page, you're officially a rndc-confgen girlie now π This was BIND 9 version 9.20.30, dated 2026-10-12 β go forth and generate those keys, periodt. πβ¨
π¦ where this page comes from
- alpine 3.22: bind-doc 9.20.30-r0 Β· MPL-2.0
- alpine 3.23: bind-doc 9.20.30-r0 Β· MPL-2.0
- alpine 3.24: bind-doc 9.20.30-r0 Β· MPL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms