DNS/DHCP工作正常,但是DDNS功能无法实现?
[root@localhost root]# cat /etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;
subnet 192.168.0.0 netmask 255.255.255.0{
range 192.168.0.150 192.168.0.155;
default-lease-time 86400;
option routers 192.168.0.3;
option domain-name "test.com";
option domain-name-servers 202.102.192.68;
option broadcast-address 192.168.0.255;
default-lease-time 6000;
max-lease-time 7000;
}
host AC{
hardware ethernet 00:E0:4C:90:88:30;
fixed-address 192.168.0.25;
}
key "dhcpkey" {
algorithm hmac-md5;
secret "g7/EQX5HUw5BhfWtmNSLLA==";
}
zone test.com. {
primary 127.0.0.1;
key "dhcpkey";
}
zone 0.168.192.in-addr.arpa. {
primary 127.0.0.1;
key "dhcpkey";
}
[root@localhost named]# cat etc/named.conf
options{
directory "/var/named/";
pid-file "/var/run/named.pid";
};
zone "." {
type hint;
file "named.root";
};
zone "test.com"{
type master;
file "test.zone";
allow-update { key "dhcpkey";};
};
zone "0.168.192.in-addr.arpa"{
type master;
file "0.168.192.in-addr.arpa";
allow-update { key "dhcpkey";};
};
key "dhcpkey" {
algorithm hmac-md5;
secret "g7/EQX5HUw5BhfWtmNSLLA==";
};
key "rndc-key" {
algorithm hmac-md5;
secret "g7/EQX5HUw5BhfWtmNSLLA==";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
[root@localhost named]# cat test.zone
$TTL 86400
$ORIGIN test.com.
@ IN SOA @ root.test.com. (
20060101
3H
15M
1H
86400)
@ IN NS ns1.test.com.
@ IN MX 10 mail.test.com.
@ IN A 192.168.0.9
ns1 IN A 192.168.0.9
mail IN A 192.168.0.10
www IN A 192.168.0.11
bbs IN A 192.168.0.12
new IN CNAME www
DNS正解反解正常,DHCP分配IP地址正常,但是却无法注册动态的DNS,究竟为什么啊?和例子上配置应该一样....
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我..DNS..和..DHCP都会配置..就是..DDNS..还没试过..恩..我去看看...努力帮忙..
把option domain-name-servers 202.102.192.68;改成本地DNS 192.168.0.144
重新安装openssl,还是不行
附带一些dhcp显示的更新信息
Listening on LPF/eth0/00:0c:29:4b:cf:72/192.168.0.0/24
Sending on LPF/eth0/00:0c:29:4b:cf:72/192.168.0.0/24
Sending on Socket/fallback/fallback-net
DHCPRELEASE of 192.168.0.155 from 00:e0:4c:82:13:62 via eth0 (not found)
DHCPDISCOVER from 00:e0:4c:82:13:62 via eth0
DHCPOFFER on 192.168.0.155 to 00:e0:4c:82:13:62 (netcenter144) via eth0
Unable to add forward map from netcenter144.test.com to 192.168.0.155: not authorized
DHCPREQUEST for 192.168.0.155 (192.168.0.144) from 00:e0:4c:82:13:62 (netcenter144) via eth0
DHCPACK on 192.168.0.155 to 00:e0:4c:82:13:62 (netcenter144) via eth0
大家帮忙看看啊````````