- 论坛徽章:
- 0
|
请大家看看我的配置,然后帮忙提提意见:
我的域名服务器的反向解析文件内容:
TTL
@ IN SOA ns.pldsec.com. root.pldsec.com.(
19997022700;serial
28800; refresh
14400; retry
3600000; expire
@ IN NS ns.pldsec.com.
99 IN PRT mail.pldsec.com.
99 IN PRT www.pldsec.com.
域名服务器的正向解析文件内容:
#文件 pldsec.com.hosts
$ TTL 86400
@ IN SOA ns.pldsec.com. root.pldsec.com.
(42; serial (d.adams)
3H; refresh
15M; retry
1w; expiry
1D ;minimum
@ IN NS ns.pldsec.com.
@ IN A 192.168.1.99
www IN A 192.168.1.99
mail IN A 192.168.1.99
@ IN MX 10 mail.pldsec.com.
www CNAME ns
#/etc/named.conf
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 "pldsec.com" {
type master;
file "pldsec.com.hosts";
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "192.168.1.rev";
};
include "/etc/rndc.key";
运行命令 nslookup 出现的错误提示为:
[root@server etc]# nslookup
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
> www.pldsec.com
Server: 192.168.1.99
Address: 192.168.1.99#53
** server can't find www.pldsec.com: SERVFAIL
> 192.168.1.99
Server: 192.168.1.99
Address: 192.168.1.99#53
** server can't find 99.1.168.192.in-addr.arpa: SERVFAIL
> locl^Ha^H^H^H^H
Server: 192.168.1.99
Address: 192.168.1.99#53
** server can't find locl\008a\008\008\008\008: NXDOMAIN
> localhost
Server: 192.168.1.99
Address: 192.168.1.99#53
Name: localhost
Address: 127.0.0.1
> 127.0.0.1
Server: 192.168.1.99
Address: 192.168.1.99#53
1.0.0.127.in-addr.arpa name = localhost. |
|