File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,9 @@ rndc-confgen -a -c /etc/bind/rndc.key
99
1010log " Create directories"
1111mkdir -p /var/cache/bind/keys
12- chown -R named:named /var/cache/bind /etc/bind
12+ mkdir -p /var/log/named
13+ touch /var/log/named/security.log
14+ chown -R named:named /var/cache/bind /etc/bind /var/log/named
1315
1416log " Check config"
1517named-checkconf /etc/bind/named.conf
Original file line number Diff line number Diff line change 88
99log " Create fail2ban runtime directories"
1010mkdir -p /run/fail2ban /var/lib/fail2ban /var/log/fail2ban
11-
12- log " Create named log directory"
13- mkdir -p /var/log/named
14- chown named:named /var/log/named
15-
16- log " Pre-create security log so fail2ban can monitor it from startup"
17- touch /var/log/named/security.log
18- chown named:named /var/log/named/security.log
You can’t perform that action at this time.
0 commit comments