The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

“NAMED_CONF_INCLUDE_FILES” has been gone from /etc/sysconfig/named since OpenSuSE 15.4

Posted by jpluimers on 2025/04/28

In the past, I used to modify /etc/sysconfig/named and add entries to the NAMED_CONF_INCLUDE_FILES setting, then run /usr/share/bind/createNamedConfInclude
to generate /etc/named.conf.include.

As of OpenSuSE 15.4, /usr/share/bind/createNamedConfInclude has become an empty file and NAMED_CONF_INCLUDE_FILES got removed and NAMED_INITIALIZE_SCRIPTS introduced.

So now I changed my playbooks to manually generate /etc/named.conf.include and include it form /etc/sysconfig/named.

Since I hardly perform these new installations, it took a few years for me to find out about this change. Upgrading existing systems somehow kept the generated file and included it.

Related links with quotes as it was hard to find out what changed and how to work around and I wasn’t the only one bump into issues:

  • [Wayback/Archive] Therefore the NAMED_CONF_INCLUDE_FILES variable has been made obsolete – Google Search
  • [Wayback/Archive] NAMED_INITIALIZE_SCRIPTS – Google Search
    • [Wayback/Archive] Bind fails to start with status=6/NOTCONFIGURED after upgrade to SLES 15 SP4 | Support | SUSE

      Situation

      After upgraded to SLES 15 SP4 from a previous service pack, named.service is unable to start and produces the following errors.

      # systemctl start named
      Job for named.service failed because the control process exited with error code.
      See "systemctl status named.service" and "journalctl -xeu named.service" for details.
      # journalctl -xeu named.service
      ...
      Oct 20 13:28:23 host15sp4 root[4201]: Warning: "/usr/share/bind/createNamedConfInclude" does not exist or is not executable. Check /etc/sysconfig/named
      Oct 20 13:28:23 host15sp4 systemd[1]: named.service: Control process exited, code=exited, status=6/NOTCONFIGURED
      ...

      The file /etc/sysconfig/named contains the following line.

      NAMED_INITIALIZE_SCRIPTS="createNamedConfInclude"

      The following line is present in /etc/named.conf.

      include "/etc/named.conf.include";

      The file /etc/named.conf.include existed before the upgrade to 15 SP4, but is not present after the upgrade.

      Resolution

      Edit the file /etc/sysconfig/named and change

      NAMED_INITIALIZE_SCRIPTS="createNamedConfInclude"

      to

      NAMED_INITIALIZE_SCRIPTS=""

      Then, edit the file /etc/named.conf and remove the following line.

      include "/etc/named.conf.include";

      Now start named.service.

      # systemctl start named.service

      Cause

      The script createNamedConfInclude was provided by previous versions of the bind package, but is not present in the versions for SLES 15 SP4. The config file /etc/sysconfig/named is not updated to reflect this during the upgrade process.

      The file /etc/named.conf.include was created by createNamedConfInclude in previous versions of bind. Since createNamedConfInclude does not exist in SLES 15 SP4, /etc/named.conf.include is never created and must be removed from the config

    • [Wayback/Archive] 1186278 – bind missing /usr/share/bind/createNamedConfInclude

      We have changed bind from running inside a chroot jail to protecting it (or the rest of the system, depending upon the point of view) using systemd's protection mechanisms. During this, we decided to do some additional cleanup. Therefore the /etc/named.conf.include file is not used and therefore not created anymore and the createNamedConfInclude script is not used any more. While we have strived to make transition from the chroot environment to the systemd protection as sound as possible, at least in the very first releases, this was bumpy, to say the least.

      The new /etc/sysconfig/named will have only these three entries:
      NAMED_INITIALIZE_SCRIPTS=""
      RNDC_KEYSIZE="512"
      NAMED_ARGS=""

    • [Wayback/Archive] named stopped working – English / Network/Internet – openSUSE Forums
      **aldebaran:~ #** /usr/sbin/named-checkconf 
      /etc/named.conf:168: open: /etc/named.conf.include: file not found
      
      so I edited named.conf, deleted the line at #168
      [FONT=monospace] 
      #include "/etc/named.conf.include";
      
      and
      **aldebaran:~ #** systemctl start named.service    
      **aldebaran:~ #** systemctl status named.service 
      ***** named.service - Berkeley Internet Name Domain (DNS) 
           Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled) 
           Active: **active (running)** since Thu 2022-08-11 15:58:15 CEST; 15s ago 
          Process: 19963 ExecStartPre=/usr/lib/bind/named.prep (code=exited, status=0/SUCCESS) 
          Process: 19966 ExecStart=/usr/sbin/named -u named $NAMED_ARGS (code=exited, status=0/SUCCESS) 
         Main PID: 19967 (named) 
            Tasks: 10 (limit: 4915) 
           CGroup: /system.slice/named.service 
                   `-19967 /usr/sbin/named -u named 
      
      Aug 11 15:58:15 aldebaran named[19967]: automatic empty zone: A.E.F.IP6.ARPA 
      Aug 11 15:58:15 aldebaran named[19967]: automatic empty zone: B.E.F.IP6.ARPA 
      Aug 11 15:58:15 aldebaran named[19967]: automatic empty zone: 8.B.D.0.1.0.0.2.IP6.ARPA 
      Aug 11 15:58:15 aldebaran named[19967]: automatic empty zone: EMPTY.AS112.ARPA 
      Aug 11 15:58:15 aldebaran named[19967]: automatic empty zone: HOME.ARPA 
      Aug 11 15:58:15 aldebaran named[19967]: configuring command channel from '/etc/rndc.key' 
      Aug 11 15:58:15 aldebaran named[19967]: **command channel listening on 127.0.0.1#953** 
      Aug 11 15:58:15 aldebaran named[19967]: configuring command channel from '/etc/rndc.key' 
      Aug 11 15:58:15 aldebaran named[19967]: **command channel listening on ::1#953** 
      Aug 11 15:58:15 aldebaran systemd[1]: Started Berkeley Internet Name Domain (DNS). 
      **aldebaran:~ #** 
      
      working!
      thanks
      [/FONT]
    • [Wayback/Archive] Named Hideously Broken – English / Applications – openSUSE Forums
      1. Run always rpmconfigcheck after an update
      2. Look at the list of changed config files generated by rpmconfigcheck (.rpmnew)
      3. If you don’t use named.conf.include comment the line
      [FONT=monospace]include "/etc/named.conf.include";[/FONT]
      
      out in named.conf and edit the file /etc/sysconfig/named and change
      NAMED_INITIALIZE_SCRIPTS="createNamedConfInclude"
      
      to
      NAMED_INITIALIZE_SCRIPTS=""
      
      
      1. If you use [FONT=monospace]named.conf.include copy it to /etc.
  • [Wayback/Archive] “NAMED_CONF_INCLUDE_FILES” is gone – Google Search

--jeroen

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.