Named failed to start during boot

Hi guys.

I'm using openwrt 19.07.2 @ tplink archer c7v5 running bind-server - 9.14.8-1
strange thing is happening. As soon as router rebooted named cannot start and I see fillowing in log file:

May 10 04:15:56 ap.st1.org named[1024]: could not listen on UDP socket: permission denied
May 10 04:15:56 ap.st1.org named[1024]: creating IPv4 interface lo failed; interface ignored
May 10 04:15:56 ap.st1.org named[1024]: listening on IPv4 interface br-lan, 192.168.172.9#53
May 10 04:15:56 ap.st1.org named[1024]: could not listen on UDP socket: permission denied
May 10 04:15:56 ap.st1.org named[1024]: creating IPv4 interface br-lan failed; interface ignored
May 10 04:15:56 ap.st1.org named[1024]: not listening on any interfaces

nonetheless whenever I restartted named ssh0in to box named runs perfectly and ready to serv clients.

What it shouls be? From my experience it shoulld be wrong permissions for pid file, but where bind@openwrt stores this file? Or any other ideas?

Thank you in advance.

As you do not provide much info, just guessing:

  • conflict with dnsmasq
  • timing issue.

You might need to disable/reconfig dnsmasq, or disable named, and start explicitly in rc.local. Which should be late enough, to have rest of network started before.

dnsmasq stoped and disabled:

root@ap:/home/sam# ls /etc/rc.d/ | grep dns
root@ap:/home/sam#

also I have running ntpd for that router getting right NTP date & time from NTP server:

root@ap:/home/sam# ps w | grep ntp; date
 1526 root      1216 S<   /usr/sbin/ntpd -n -N -S /usr/sbin/ntpd-hotplug -p 192.168.172.1
 1749 root      1212 S    grep ntp
Mon May 11 16:09:10 EDT 2020
root@ap:/home/sam#

What else I need to provide?

More information on the install process, how you configured Bind, instead of Dnsmasq, etc. (i.e. information on your install - needed to assist you with your problem).