- 论坛徽章:
- 0
|
- C:\Documents and Settings\admin>;nslookup - 211.154.223.162
- *** Can't find server name for address 211.154.223.162: Non-existent domain
- Default Server: UnKnown
- Address: 211.154.223.162
- >; 21cn.com
- Server: UnKnown
- Address: 211.154.223.162
- Non-authoritative answer:
- Name: 21cn.com
- Addresses: 61.140.60.83, 61.140.60.90
- >;
复制代码
windows下的出错代码,但是还是可以使用,但在bsd和linux上根本无法使用,请问需要配置什么文件来获得servername
我的name.conf如下
- key "rndc-key" {
- algorithm hmac-md5;
- secret "AVCalvDhZ2i6k9hZ6T3hng==";
- };
- controls {
- inet 127.0.0.1 port 953
- allow { 127.0.0.1; } keys { "rndc-key"; };
- };
- //End of named.conf
- options {
- directory "/etc/namedb";
- forwarders {
- 127.0.0.1;
- };
- };
- host { any; } {
- topology {
- 127.0.0.0/8;
- };
- };
- zone "." {
- type hint;
- file "named.root";
- };
- zone "0.0.127.IN-ADDR.ARPA" {
- type master;
- file "localhost.rev";
- };
- // RFC 3152
- zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA" {
- type master;
- file "localhost-v6.rev";
- };
- // RFC 1886 -- deprecated
- zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.INT" {
- type master;
- file "localhost-v6.rev";
- };
- zone "yourw.com.cn" in{
- type master;
- file "yourw.com.cn";
- };
-
- zone "117.30.218.in-addr.arpa" in{
- type master;
- file "yourw.com.cn.rev";
- };
- zone "esai.com.cn" in{
- type master;
- file "esai.com.cn";
- };
- zone "117.30.218.in-addr.esai.com.cn.arpa" in{
- type master;
- file "esai.com.cn.rev";
- };
- zone "esai.net" in{
- type master;
- file "esai.net";
- };
- zone "117.30.218.in-addr.esai.net.arpa" in{
- type master;
- file "esai.net.rev";
- };
- zone "esai.cn" in{
- type master;
- file "esai.cn";
- };
- zone "117.30.218.in-addr.esai.cn.arpa" in{
- type master;
- file "esai.cn.rev";
- };
复制代码 |
|