Symptoms
- It is not possible to start bind/named service, the following error is shown:
# systemctl status named-chroot
Mar 21 05:48:19 named-checkconf: /etc/named-user-options.conf:1: unknown option 'version'
Mar 21 05:48:19 named-checkconf: /etc/named-user-options.conf:2: unknown option 'auth-nxdomain'
Mar 21 05:48:19 systemd: named-chroot.service: control process exited, code=exited status=1
Cause
Custom directive include "/etc/named-user-options.conf"
specified in /etc/named.conf
Resolution
- Login to the server via SSH.
- Check that
include "/etc/named-user-options.conf"
is included only in the top of/etc/named.conf
, This directive must exist only once within the file:options {
include "/etc/named-user-options.conf";
allow-recursion {
localnets;
}; - Remove any extra
include "/etc/named-user-options.conf"
directives, save and close the file. - Restart the bind/named service:
# systemctl restart named-chroot