- 论坛徽章:
- 0
|
有人做过DNS+DHCP动态域名DDNS吗?
[quote="屠龙"]
还是全部界面都DHCP了?
[quote]
这句话是什么意思?
sample of dhcpd.conf including DDNS
----------------------------------------------------
- ddns-update-style interim;
- ddns-updates on;
- zone sample.local. {
- primary 10.10.10.1;
- }
- zone 10.10.10.in-addr.arpa. {
- primary 10.10.10.1;
- }
- option domain-name "sample.local";
- option domain-name-servers 10.10.10.1 10,10,10,2; #10.10.10.0/24
- default-lease-time 600;
- max-lease-time 7200;
- log-facility local7;
- subnet 10.10.10.0 netmask 255.255.255.0 {
- range 10.10.10.10 10.10.253;
- option routers 10.10.10.254;
- }
复制代码
在named.conf里面追加 allow-update IP_of_dhcpd-server
客户端hostname要预先在客户端指定。
host1.sample.local
host2.sample.local
.....
再作复杂一点的话可以加TSIG认证什么的。
要是再不行,
把你的ifconfig, dhcpd.conf, isc-dhcpd.sh全部贴上来看看。 |
|