- 论坛徽章:
- 0
|
一个关于dns的问题??
大哥!我想这样说吧!我在www.3322.org上申请cdj.3322.org的子域名!
通过ADSL猫的影射功能影射到我的域名服务器,我架设了一域名服务器,
我的域名服务器怎么样配置才能让外网能解析到我机子上不同的域名呢?
#10.0.0
IN SOA ns.cdjns.3322.org. root.cdjns.3322.org. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
@ IN NS ns.cdjns.3322.org.
96 IN PTR www.cdjns.3322.org
96 IN PTR www.cdjdomain.com.
96 IN PTR ns.cdjns.3322.org.
#cdjns
@ IN SOA ns.cdjns.3322.org. root.cdjns.3322.org. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
@ IN A 10.0.0.96
@ IN NS ns.cdjns.3322.org.
localhost IN A 127.0.0.1
www IN A 10.0.0.96
ns IN A 10.0.0.96
#/etc/named
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
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 "cdjns.3322.org" IN {
type master;
file "cdjns";
};
zone "0.0.10.in-addr.arpa" IN {
type master;
file "10.0.0";
};
include "/etc/rndc.key";
不行呀!能不能帮我改改!谢谢!! |
|