- 论坛徽章:
- 0
|
我配置了DDNS,使用第一个默认域ccde.cnpc就可以动态更新,但如果使用另一个域jg.com就不能,这两个域都是能正常解析(nslookup都有结果)的,
-------- --------
| DNS| | DHCP |
-------- --------
| |
| |
---------- ---------------
| |
--------------------
| L3 Switch |
---------------------
|
|
-------
| PC |
--------
DNS: 10.132.0.118
DHCP: 10.132.0.116
L3 SW: 10.132.0.1
10.132.144.1
DNS服务器配置:
named.conf
key "rndckey" {
algorithm hmac-md5;
secret "SIUENXwRbZdmxtKRuhMvGw==";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndckey"; };
};
options {
directory "/oursoft/program/bind9/etc";
forwarders {10.8.1.1; 10.33.48.18; 10.33.48.19; };
pid-file "named.pid"; #pid
};
zone "." IN {
type hint;
file "named.root";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update{ none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update{ none; };
};
zone "ccde.cnpc" IN {
type master;
file "ccde.cnpc.zone";
notify yes;
allow-update { none; };
allow-query { any; };
};
zone "0.132.10.in-addr.arpa" IN {
type master;
file "0.132.10.local";
allow-update{ none; };
allow-query { any; };
};
zone "jg.com" IN {
type master;
file "jg.zone";
notify yes;
allow-update { key rndckey; };
allow-query { any; };
};
zone "144.132.10.in-addr.arpa" IN {
type master;
file "144.132.10.local";
allow-update{ key rndckey; };
allow-query { any; };
};
jg.zone
$ttl 1D
@ IN SOA jg.com. root.jg.com. (
1053891170
3H
15M
1W
1D )
IN NS jg.com.
IN MX 5 jg.com.
dns IN A 10.132.144.118
144.132.10.local
$TTL 86400
@ IN SOA jg.com. root.jg.com.(
20031010;
7200;
3600;
43200;
86400);
@ IN NS jg.com.
118 IN PTR dns.jg.com.
DHCP配置
server-identifier 10.132.0.119;
authoritative;
ddns-update-style interim;
ignore client-updates;
omapi-port 7911;
key "rndckey" {
algorithm hmac-md5;
secret "SIUENXwRbZdmxtKRuhMvGw==";
};
zone jg.com. {
primary 10.132.0.119;
key "rndckey";
}
zone 144.132.10.in-addr.arpa. {
primary 10.132.0.119;
key "rndckey";
}
option nis-domain "jg.com";
option domain-name "jg.com";
option domain-name-servers 10.132.0.119;
default-lease-time 21600;
max-lease-time 43200;
allow booting;
allow bootp;
## vlan 31 公司领导 ##
subnet 10.132.144.0 netmask 255.255.255.0 {
range 10.132.144.66 10.132.144.123;
option subnet-mask 255.255.255.0;
option routers 10.132.144.1;
}
F:\Documents and Settings\berean>nslookup
Default Server: dns2.ccde.cnpc
Address: 10.132.0.119
> dns.jg.com
Server: dns2.ccde.cnpc
Address: 10.132.0.119
Name: dns.jg.com
Address: 10.132.144.118
> 10.132.144.118
Server: dns2.ccde.cnpc
Address: 10.132.0.119
Name: dns.jg.com
Address: 10.132.144.118
解析都没问题.
现在如果是用jg.com这个域,就不能DDNS,如果把update改到ccde.cnpc这个域,就是可以的.不知道是哪里有没设置对?
[ 本帖最后由 sulin515 于 2009-6-4 15:52 编辑 ] |
|