• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

named-checkconf: command not found

by admin

named-checkconf utility comes bundled with the BIND package and is used to check the syntax of an named configuration file. The named-checkconf will traverse your entire bind configuration and any included files. When managing many thousand domains this is useful: Any configuration syntax error introduced will usually cause the nameserver to stop processing at that error. In other words, any zones specified after the error will not get loaded into the nameserver:

# ./named-checkconf ./named.conf;echo $? 
0

And now we’ve left out a “.” in an IP address within an allow-transfer statement:

# ./named-checkconf ./named.conf;echo $?
./named.conf:724: undefined ACL '72167.238.111' 1

In case you encounter an error as shown below:

named-checkconf: command not found

You may need to install the bind9utils package as per your choice of distribution.

Distribution Command
OS X brew install bind
Debian apt-get install bind9utils
Ubuntu apt-get install bind9utils
Alpine apk add bind
Arch Linux pacman -S bind
Kali Linux apt-get install bind9utils
Fedora dnf install bind
Raspbian apt-get install bind9utils
Docker docker run cmd.cat/named-checkconf named-checkconf

Summary

named-checkconf utility is used to check the syntax named configuration files. The output should return nothing for a good/correct file. In case of a badly formatted configuration file you should see some error.

To check all configuration files at once:

# named-checkconf -z

Filed Under: Linux

Some more articles you might also be interested in …

  1. Unable To Join Linux Samba Server To Windows Active Directory Domain
  2. httpd Command Examples in Linux
  3. CentOS / RHEL LVM : Backing Up Volume Group Metadata
  4. UNIX / Linux : How to lock or disable an user account
  5. CentOS / RHEL : How to prevent disabled repositories from being downloaded into the yum cache
  6. /var/cache/yum Constantly Filling Files System in CentOS/RHEL
  7. How to Add Network Printer via Command Line in CentOS/RHEL
  8. Linux Command line Basics – Executing commands from the command line
  9. How to Disable IPv6 in CentOS/RHEL 8
  10. How To Remove Disk from a LVM Volume Group

You May Also Like

Primary Sidebar

Recent Posts

  • grpck command – Remove corrupt or duplicate entries in the /etc/group and /etc/gshadow files.
  • xxd command – Expressed in hexadecimal form
  • sesearch: command not found
  • macof: command not found

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright