From 4160372175ee086107901cc824842a2669a52360 Mon Sep 17 00:00:00 2001 From: srikanth patchava Date: Thu, 10 May 2018 10:16:00 -0500 Subject: [PATCH] DNS Failed to start Berkeley Internet Name Domain May 09 18:00:20 named[460]: loading configuration from '/etc/bind/named.conf' May 09 18:00:20 named[460]: [[0;1;31m/etc/bind/named.conf:50: open: /etc/bind/rndc.key: permission denied[[0m May 09 18:00:20 named[460]: [[0;1;31mloading configuration: permission denied[[0m May 09 18:00:20 named[460]: [[0;1;31mexiting (due to fatal error)[[0m May 09 18:00:20 systemd[1]: [[0;1;39mnamed.service: Control process exited, code=exited status=1[[0m May 09 18:00:20 systemd[1]: [[0;1;31mFailed to start Berkeley Internet Name Domain (DNS).[[0m --- meta/recipes-connectivity/bind/bind/conf.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-connectivity/bind/bind/conf.patch b/meta/recipes-connectivity/bind/bind/conf.patch index aad345f9fcf..05b11ce5e35 100644 --- a/meta/recipes-connectivity/bind/bind/conf.patch +++ b/meta/recipes-connectivity/bind/bind/conf.patch @@ -277,7 +277,7 @@ diff -urN bind-9.3.1.orig/init.d bind-9.3.1/init.d + modprobe capability >/dev/null 2>&1 || true + if [ ! -f /etc/bind/rndc.key ]; then + /usr/sbin/rndc-confgen -a -b 512 -r /dev/urandom -+ chmod 0640 /etc/bind/rndc.key ++ chmod 0644 /etc/bind/rndc.key + fi + if [ -f /var/run/named/named.pid ]; then + ps `cat /var/run/named/named.pid` > /dev/null && exit 1