|
发表于 2003-3-22 09:03:13
|
显示全部楼层
2003年03月22日上午08时55分27秒[root@gugonghcs root]# rpm -qi bind --scripts
Name : bind Relocations: (not relocateable)
Version : 9.2.1 Vendor: Red Hat, Inc.
Release : 9 Build Date: 2002年08月07日 星期三 21时27分31秒
Install date: 2002年10月03日 星期四 00时08分58秒 Build Host: astest
Group : 系统环境/守护进程 Source RPM: bind-9.2.1-9.src.rpm
Size : 4048971 License: BSD-like
Signature : DSA/SHA1, 2002年09月04日 星期三 05时10分18秒, Key ID 219180cddb42a60e
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : http://www.isc.org/products/BIND/
Summary : DNS (域名系统) 服务器。
Description :
BIND (Berkeley 互联网名称域) 是 DNS (域名系统)
协议的一种实现。BIND 包括一个把主机名解
析为 IP 地址的 DNS 服务器(被命名的);一个解
析器库(在与 DNS 接口时应用程序所使用的例程);
以及校验 DNS 服务器是否被正确操作的工具。
preinstall scriptlet (through /bin/sh):
/usr/sbin/useradd -c "Named" -u 25 \
-s /sbin/nologin -r -d /var/named named 2>/dev/null || :
postinstall scriptlet (through /bin/sh):
/sbin/chkconfig --add named
if [ -f /etc/named.boot -a ! -f /etc/named.conf ]; then
if [ -x /usr/sbin/named-bootconf ]; then
cat /etc/named.boot | /usr/sbin/named-bootconf > /etc/named.conf
chmod 644 /etc/named.conf
fi
fi
if [ ! -e /etc/rndc.conf.rpmnew ]; then
sed -e "s/@KEY@/`/usr/sbin/dns-keygen`/" /etc/rndc.conf >/etc/rndc.conf.tmp
mv -f /etc/rndc.conf.tmp /etc/rndc.conf
fi
if [ ! -e /etc/rndc.key.rpmnew ]; then
tail -n 4 /etc/rndc.conf >/etc/rndc.key
fi
chmod 0640 /etc/rndc.conf /etc/rndc.key
chown root:named /etc/rndc.conf /etc/rndc.key
/sbin/ldconfig
exit 0
preuninstall scriptlet (through /bin/sh):
if [ $1 = 0 ]; then
/usr/sbin/userdel named 2>/dev/null || :
/usr/sbin/groupdel named 2>/dev/null || :
/sbin/chkconfig --del named
[ -f /var/lock/subsys/named ] && /etc/rc.d/init.d/named stop >/dev/null 2>&1
fi
exit 0
postuninstall scriptlet (through /bin/sh):
if [ "$1" -ge 1 ]; then
/etc/rc.d/init.d/named condrestart >/dev/null 2>&1 || :
fi
/sbin/ldconfig
bind 在 rpm 包安装时会自动生成 /etc/rndc.key、/etc/rndc.conf |
|