NAMED-CHECKCONF(8)
π NAMED-CHECKCONF(8) β the vibe check for your named config
okay so bestie, welcome to named-checkconf, the BIND 9 tool that reads your named configuration file and tells you if the syntax is a slay or a disaster. It's the manual page, it's section 8, and yes we're doing this together. π«Ά
β¨ SYNOPSIS β¨
named-checkconf [-chjlvz] [-p [-x ]] [-t directory] {filename}
like, that's the whole summoning ritual. periodt. π₯
πΈ DESCRIPTION πΈ
named-checkconf checks the syntax, but not the semantics, of a named configuration file. So it's giving "does this even parse" energy, not "does this actually make sense" energy β important distinction, bestie. π
The file gets parsed and checked for syntax errors, and that includes every file it pulls in via includes. If you don't specify a file at all, it just reads /etc/named.conf by default. iconic default behavior honestly.
β οΈ the one where you need to pay attention: files thatnamedreads in separate parser contexts, such asrndc.keyandbind.keys, are not automatically read bynamed-checkconf. So configuration errors in those files may causenamedto fail to run, even ifnamed-checkconfwas successful. π not the plot twist. However,named-checkconfcan be run on these files explicitly β so you can absolutely check them yourself, you just have to point at them. iykyk.
π OPTIONS π
-hβ prints the usage summary and exits. a little "here's how this works" moment, then it's gone. π-jβ when loading a zonefile, this option instructsnamedto read the journal if it exists. journal read = enabled, no cap. π-lβ lists all the configured zones. each line of output contains the zone name, class (e.g.IN), view, and type (e.g.primaryorsecondary). it's giving inventory day and honestly we love a tidy list. β¨-cβ specifies that only the "core" configuration should be checked. this suppresses the loading of plugin modules, and causes all parameters to plugin statements to be ignored. core only, no plugins, no extra credit. π-iβ ignores warnings on deprecated options. deprecated options are lowkey in their flop era but this flag is like "not today, warnings." π-pβ prints out thenamed.confand included files in canonical form, if no errors were detected. see also the-xoption, because these two are besties. π«Ά-t directoryβ instructsnamedto chroot to directory, so that include directives in the configuration file are processed as if run by a similarly chrootednamed. same energy, different root. π§-vβ prints the version of thenamed-checkconfprogram and exits. just a little "hi, this is me" moment. π-xβ when printing the configuration files in canonical form, this option obscures shared secrets by replacing them with strings of question marks (?). this allows the contents ofnamed.confand related files to be shared β for example, when submitting bug reports β without compromising private data. so you can spill the config tea without spilling the actual secrets, love that for us. π
π¨ important: this option cannot be used without -p. not a suggestion, not a vibe, an actual rule.
-zβ performs a test load of all zones of typeprimaryfound innamed.conf. test load, not a real load, we're just checking. πfilenameβ indicates the name of the configuration file to be checked. if not specified, it defaults to/etc/named.conf. the default is the main character here, fr fr. π
β RETURN VALUES β
named-checkconf returns an exit status of 1 if errors were detected, and 0 otherwise.
so like: 0 = she's fine π, 1 = she's not fine π. that's the whole moodboard.
π SEE ALSO π
named(8)named-checkzone(8)- BIND 9 Administrator Reference Manual
go read those too, they're the supporting cast and they ate. π
π AUTHOR π
Internet Systems Consortium
π¦ COPYRIGHT π¦
2024, Internet Systems Consortium
and that's the whole page, bestie β you're officially caught up on named-checkconf. π«Άβ¨
cute little sign-off: this was BIND 9, version 9.16.50-RH, dated 2024 β go forth and syntax-check responsibly, mwah π π
π¦ where this page comes from
- centos-stream 9: bind 32:9.16.50-13.el9 Β· MPLv2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms