|
楼主 |
发表于 2003-2-26 09:35:57
|
显示全部楼层
在我的印象中 Redhat 发行的 DHCP 包是不支持 动态域名更新的。
所以我在 RedHat 7.2 的机器上安装了 ManDrake 8.2 的 DHCP 的升级包。
2003年02月26日上午09时27分16秒[root@squid master]# rpm -qa|g dhcp
dhcp-devel-3.0-1rc8.2.2mdk
dhcp-relay-3.0-1rc8.2.2mdk
dhcp-common-3.0-1rc8.2.2mdk
dhcpcd-1.3.22pl4-1.1mdk
dhcp-server-3.0-1rc8.2.2mdk
dhcp-client-3.0-1rc8.2.2mdk
dhcpxd-1.0.3-8mdk
2003年02月26日上午09时27分28秒[root@squid master]#
(其实后来我测试。RedHat 8.0 的 dhcp 包似乎也支持的,最起码启动时,没有错误出现。)
/etc/dhcpd.conf 内容如下:
server-identifier 192.168.20.8;
option cookie-servers 192.168.20.8;
option domain-name "fruitron.com.cn";
option domain-name-servers 192.168.20.8, 192.168.20.2;
option routers 192.168.20.8;
option log-servers 192.168.20.8;
option netbios-name-servers 192.168.20.8, 192.168.30.8;
option netbios-dd-server 192.168.20.8, 192.168.30.8;
option netbios-node-type 8;
#The NetBIOS node type option allows NetBIOS over TCP/IP clients which are con?
#figurable to be configured as described in RFC 1001/1002. The value is speci?
#fied as a single octet which identifies the client type.
# Possible node types are:
# 1 B-node: Broadcast - no WINS
# 2 P-node: Peer - WINS only.
# 4 M-node: Mixed - broadcast, then WINS
# 8 H-node: Hybrid - WINS, then broadcast
option time-offset 3600;
option time-servers 192.168.20.8;
option subnet-mask 255.255.255.0;
authoritative;
one-lease-per-client on;
get-lease-hostnames off;
use-host-decl-names on;
default-lease-time 288000;
max-lease-time 384000;
# 用于动态域名服务更新:
#
ddns-updates on;
#ddns-update-style ad-hoc;
ddns-update-style interim;
allow client-updates;
# 下面三个参数用于动态域名服务更新:
ddns-domainname "fruitron.com.cn";
ddns-rev-domainname "20.168.192.in-addr.arpa";
# ddns-rev-domainname "in-addr.arpa";
# option ddns-domainname "fruitron.com.cn";
# option ddns-rev-domainname "64.20.168.192.in-addr.arpa";
# option ddns-hostname pxz.comet.com";
subnet 192.168.20.0 netmask 255.255.255.0 {
range 192.168.20.100 192.168.20.200;
option broadcast-address 192.168.20.255;}
}
host jonsun {
hardware ethernet 00:50:fe:bd:72:8d;
fixed-address 192.168.20.32;
option host-name "jonsun";
}
.................
|
|