1. 安装 dhcp bind bind-utils caching-nameserver bind-devel
2. dnssec-keygen -a HMAC-MD5 -b 128 -n USER myddns
3. named.caching-rfc1912.zones.conf
key myddns {
algorithm HMAC-MD5;
secret secret-string;
};
zone "samsun.com." {
type master;
file samsun.com.zone;
allow-update {key myddns;};
};
zone "100.168.192.in-addr.arpa." {
type master;
file 100.168.192.in-addr.arpa.zone
allow-update {key myddns;};
};
创建 samsun.com.zone 和 100.168.192.in-addr.arpa.zone 文件
chmod g+w /var/named/chroot/var/named/
4. dhcpd.conf
key myddns {
algorithm HMAC-MD5;
secret secret-string;
};
zone samsun.com. {
primary dnsip;
key myddns;
}
zone 100.168.192.in-addr.arpa. {
primary dnsip;
key myddns;
}
5. /etc/init.d/dhcpd start /etc/init.d/named start chkconfig named on chkconfig dhcpd on
6. windows 客户端无需配置
7. linux客户端
在/etc/下新建dhcpclient.conf配置文件
send fqdn.fqdn "Linux";
send fqdn.encoded on;
send fqdn.server-update off;
运行 dhcpclient 命令
8. 也可以在dns server上执行dnsupdate命令测试
nsupdate
>server 127.0.0.1
> update add test.samsun.com 600 A 192.168.100.40
> send
阅读(1833) | 评论(0) | 转发(0) |