[Home] [Kuri] [Sysad] [Internet?] [Blog] [Java] [Windows] [Download] [Profile] [Flash] [+] |
# pw groupadd dns -g 70 # pw useradd named -u 70 -g 70 -d /var/named -s /sbin/nologin |
# groupadd -g 70 dns # useradd -u 70 -g 70 -d /var/named -s /bin/true named |
# mkdir /var/named # cd /var/named # mkdir dev etc var # mknod dev/null c 2 2 # mkdir -p etc/namedb/data # chown -R named etc/namedb # cp -p /etc/namedb/* etc/namedb # ln -s namedb/named.conf etc/named.conf # mkdir var/run # chgrp dns var/run # chmod 775 var/run |
# kill `cat /var/run/syslog.pid` && syslogd -s -l /var/named/dev/log |
# cd /var/named # mkdir dev etc var # mknod dev/null c 3 2 # mknod dev/klog c 16 0 # mkdir -p etc/namedb/data # chown -R named etc/namedb # cp -p /etc/namedb/* etc/namedb # ln -s namedb/named.conf etc/named.conf # mkdir var/run # chgrp dns var/run # chmod 775 var/run |
# mkdir -p /var/named/usr/share/lib/zoneinfo # cd /usr/share/lib/zoneinfo # tar cf - . |(cd /var/named/usr/share/lib/zoneinfo; tar xfp -) # cd /var/named # mkdir dev etc usr var # cd dev # mknod log c 21 5 # mknod null c 13 2 # mknod zero c 13 12 # mknod tcp c 11 42 # mknod udp c 11 41 # chgrp sys * # chmod 666 * # chmod 640 log # mkdir ../var/run # chgrp dns ../var/run # chmod 775 ../var/run # cd ../etc # mkdir -p namedb/data # chown -R named namedb # cp -p /etc/namedb/* namedb # cp -p /etc/named.conf . # cp -p /etc/netconfig . |
# /usr/local/sbin/named -t /var/named -u named |
named9=YES named_flags="-t /var/named -u named" |
if [ -f /usr/pkg/etc/rc.d/named9 ]; then /usr/pkg/etc/rc.d/named9 start fi |
pidfile="/usr/pkg/etc/named9/var/run/${name}.pid" |
[Home] [Kuri] [Sysad] [Internet?] [Blog] [Java] [Windows] [Download] [Profile] [Flash] [-] | |
usu@usupi.org | Last modified : Sat Aug 18 15:12:59 2001 |