REALMINIT(1)
π REALMINIT(1) π
okay bestie, so this is realminit, and it lives in the User Contributed Perl Documentation corner of your manual. buckle up, we're making realms. π¦
β¨ NAME β¨
realminit β it makes brand new realm records for a DNSSEC-Tools realms file. that's it. that's the job. π
πΈ SYNOPSIS πΈ
realminit [options] <realm1> ... <realmN>
π DESCRIPTION π
okay so realminit creates new realm entries for a realms file. meanwhile dtrealms is out here managing multiple distinct DNSSEC-Tools rollover environments running simultaneously β like, at the same time, no big deal. each one of those rollover environments is called a realm, and every realm gets defined in a realms file. dtrealms reads that file to figure out how to run each rollover environment. this is lowkey iconic for stuff like managing very large collections of zones, segregating customer zones, and software tests. β¨
the newly generated realm entries get written to standard output, unless you pass the -out option. (we love a redirect. we love a file. options, options.) π
so a realms file is just a bunch of entries, one for each managed realm. and a realm entry looks like THIS:
realm "example"
state "active"
configdir "/usr/realms/configs/example"
statedir "/usr/realms/states/example"
realmsdir "/usr/realms/realms-files/example"
rollrec "example.rrf"
administrator "bob@cat.example.com"
display "1"
manager "rollerd"
args "-display -loglevel phase"
you can create multiple realm entries in a single execution of realminit β one girl, many realms, main character energy fr fr. except for the entry's name field, those entries will be exactly the same unless you use the '=' metacharacter in the command-line options. here's the tea: if the values of the configdir, statedir, realmdir, rollrec, administrator, args, or user options contain an '=', then it gets replaced with the realm's name when building the entry. it's giving template. it's giving mad libs but for DNS. π§ check the EXAMPLES section for how options are actually used by realminit.
π OPTIONS π
realminit may be given the following options, bestie:
-activeβ this saysdtrealmsshould start the realm whendtrealmsstarts. realms are active by default, so this is you just being explicit about it. π-administratorβ the email address for the realm's administrator. someone's gotta get the emails.-argsβ a set of command-line arguments passed to the realm's rollover manager when the realm is started.-configdirβ the realm's configuration directory. it holds things like the DNSSEC-Tools configuration file for that realm. π-displayβ this indicates if the realm should be included ingrandvizieroutput.-inactiveβ this saysdtrealmsshould not start the realm whendtrealmsstarts. rest era.-managerβ the rollover manager for the realm.rollerdis the default rollover manager, but other managers may be used. (not me being loyal torollerd.)-outoutput-fileβ the new realm entries will be appended tooutput-file. the file will be created if it does not exist. π«Ά
if this option is not given, the new rollrec entries will be written to standard output.
-realmdirβ the realm's data directory. this directory is expected to contain the rollrec file, zone files, keyrec files, and key files for the zones in that realm. it's giving whole entire closet. π-rollrecβ the path to the realm's rollrec file. this is used to control rollover actions for the realm. if it is not an absolute path, it will be assumed to be relative to therealmdirfield.-statedirβ the realm's state directory. it holds things like that realm's rollrec lock file and therollerdcommunications socket. if thestatediris not defined for a realm, then the realm'sconfigdiris used for that value. (fallback queen.) π-userβ the user that the realm is executed as. > heads up bestie: this is not yet implemented indtrealms. π-helpβ display a usage message.-Versionβ display version information forrealminitand DNSSEC-Tools. note the capital V, she's fancy. β¨
π EXAMPLES π
the following options should make clear how realminit deals with options and the new realms. Example 1 will show the complete new realm record. for the sake of brevity, the remaining examples will only show the fields relevant to that example. further examples will also use short-hand forms of the option names. iykyk. π¦
π Example 1. One realm, with -statedir
this example shows the realm generated by giving realminit a single realm.
$ realminit -active -configdir /realms/confs/example -statedir /realms/states/example -realmdir /realms/realms/example -rollrec example.rrf -admin bob@cat.example.com -args "-loglevel phase -logfile logger" example
realm "example"
state "active"
configdir "/realms/confs/example"
statedir "/realms/states/example"
realmdir "/realms/realms/example"
rollrec "example.rrf"
administrator "bob@cat.example.com"
display "1"
manager "rollerd"
args "-loglevel phase -logfile logger"
look at her. fully formed. we're so proud. ππ
π Example 2. One realm, without -statedir
this example shows the realm generated by giving realminit a single realm.
$ realminit -active -configdir /realms/confs/example -realmdir /realms/realms/example -rollrec example.rrf -admin bob@cat.example.com -args "-loglevel phase -logfile logger" example
realm "example"
state "active"
configdir "/realms/confs/example"
statedir "/realms/confs/example"
...
see how statedir just quietly became the configdir? that's the fallback. no drama, just defaults. π
π Example 3. Two realms, without metacharacters
this example shows the realms generated by giving realminit two realms, without using the special "=" metacharacter.
$ realminit -configdir /realms/confs/example -statedir /realms/states/example -realmdir /realms/realms/example -rollrec example.rrf -admin bob@cat.example.com example test
realm "example"
configdir "/realms/confs/example"
statedir "/realms/states/example"
realmdir "/realms/realms/example"
rollrec "example.rrf"
administrator "bob@cat.example.com"
...
realm "test"
configdir "/realms/confs/example"
statedir "/realms/states/example"
realmdir "/realms/realms/example"
rollrec "example.rrf"
administrator "bob@cat.example.com"
...
both realms got the same everything except the name. twins. matching outfits. π―
π Example 4. Two realms, with metacharacters
this example shows the realms generated by giving realminit two realms, and that uses the special "=" metacharacter.
$ realminit -configdir /realms/confs/= -statedir /realms/states/= -realmdir /realms/realms/= -rollrec =.rrf -admin bob@cat.=.com example test
realm "example"
configdir "/realms/confs/example"
statedir "/realms/states/example"
realmdir "/realms/realms/example"
rollrec "example.rrf"
administrator "bob@cat.example.com"
...
realm "test"
configdir "/realms/confs/test"
statedir "/realms/states/test"
realmdir "/realms/realms/test"
rollrec "test.rrf"
administrator "bob@cat.test.com"
...
THE = ATE. π every single = got swapped for the realm name and now both realms are custom-built. this is the one. this is the moment. β
π COPYRIGHT π
Copyright 2012-2014 SPARTA, Inc. All rights reserved. See the COPYING file included with the DNSSEC-Tools package for details.
πΈ AUTHOR πΈ
Wayne Morrison, tewok@tislabs.com
π₯ SEE ALSO π₯
lsrealm(1), dtrealms(8), realmchk(8)
Net::DNS::SEC::Tools::realm.pm(3),
file-realmrec.pm(5)
and that's the whole page bestie!! π this one came from perl v5.42.0 and it's dated 2025-07-23 β you're reading REALMINIT(1), so go forth and make realms, periodt. π¦β¨π
π¦ where this page comes from
- fedora 43: dnssec-tools 2.2.3-30.fc43 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms