- # the rndc-confgen command.
- BINDKEY=$(rndc-confgen -b 512 | grep -m 1 "secret" | cut -d '"' -f 2)
-
- cd /home/named
- mkdir -p dev etc/namedb/{pz,slave} var/run
- rm -f /home/named/dev/null
- mknod /home/named/dev/null c 1 3
- rm -f /home/named/dev/random
- mknod /home/named/dev/random c 1 8
- chmod 666 /home/named/dev/{null,random}
- cp /etc/localtime /home/named/etc
+ # the rndc-confgen command. If the option "-r /dev/random" is not specified,
+ # the source of randomness is the keyboard and the command will wait
+ # forever for keyboard input before continuing.
+ BINDKEY=$(rndc-confgen -b 512 -r /dev/random | grep -m 1 "secret" | cut -d '"' -f 2)
+
+ cd /srv/named
+ mkdir -p dev etc/namedb/{pz,slave} var/run usr/lib
+ rm -f /srv/named/dev/null
+ mknod /srv/named/dev/null c 1 3
+ rm -f /srv/named/dev/random
+ mknod /srv/named/dev/random c 1 8
+ chmod 666 /srv/named/dev/{null,random}
+ cp /etc/localtime /srv/named/etc