Unable to start named.service

Solution Verified - Updated -

Issue

  • Named service is not starting and showing below logs
[root@named]# systemctl status named
● named.service - Berkeley Internet Name Domain (DNS)
   Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2021-10-01 15:15:43 EDT; 5s ago
  Process: 96903 ExecStop=/bin/sh -c /usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID (code=exited, status=0/SUCCES>
  Process: 97483 ExecStart=/usr/sbin/named -u named -c ${NAMEDCONF} $OPTIONS (code=exited, status=1/FAILURE)
  Process: 97479 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z "$NAMEDCON>
 Main PID: 93224 (code=exited, status=0/SUCCESS)

Oct 01 15:15:43  named[97485]: none:105: 'max-cache-size 90%' - setting to 14249MB (out of 15832MB)
Oct 01 15:15:43  named[97485]: configuring command channel from '/etc/rndc.key'
Oct 01 15:15:43  named[97485]: command channel listening on 127.0.0.1#953
Oct 01 15:15:43  named[97485]: isc_stdio_open '/var/log/named/named.log' failed: permission denied            <---------
Oct 01 15:15:43  named[97485]: configuring logging: permission denied
Oct 01 15:15:43  named[97485]: loading configuration: permission denied
Oct 01 15:15:43  named[97485]: exiting (due to fatal error)
Oct 01 15:15:43  systemd[1]: named.service: Control process exited, code=exited status=1
Oct 01 15:15:43  systemd[1]: named.service: Failed with result 'exit-code'.
Oct 01 15:15:43  systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Bind
  • selinux-policy

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content