Bind9 service don't start after reboot

This is a duplicate from the following question:
https://help.univention.com/t/bind9-fails-to-start-automatically/20758

I had the same issue!

I have a large blacklist of domains and it seems that bind needs too long for samba to be able to connect to it.

I now increased the timeout specified in the following line of /usr/lib/univention-bind/samba4:

/usr/bin/timeout 30 /bin/sh -c "until rndc -p 953 status | grep --quiet 'server is up and running'; do sleep 1; 
--- /usr/lib/univention-bind/samba4        
+++ /usr/lib/univention-bind/samba4    
@@ -55,7 +55,7 @@
                /usr/sbin/rndc -p 953 stop
                ;;
        wait-for-startup)
-               /usr/bin/timeout 30 /bin/sh -c \
+               /usr/bin/timeout 270 /bin/sh -c \
                        "until rndc -p 953 status | grep --quiet 'server is up and running'; do sleep 1; done"
                ;;
 esac

Same Problem Description here:
https://bugzilla.redhat.com/show_bug.cgi?id=1069678