|
|
- [root@ns named]# cat /etc/named.conf
- // 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 "0.0.127.in-addr.arpa" IN {
- type master;
- file "named.local";
- allow-update { none; };
- };
- zone "yfdc.info" IN {
- type master;
- file "yfdc.zone";
- };
- include "/etc/rndc.key";
- [root@ns named]#
复制代码
- [root@ns named]# cat yfdc.zone
- $TTL 86400
- $ORIGIN yfdc.info.
- @ 1D IN SOA @ root (
- 42 ; serial (d. adams)
- 3H ; refresh
- 15M ; retry
- 1W ; expiry
- 1D ) ; minimum
- 1D IN NS @
- 1D IN A 192.168.1.203
- ns IN A 192.168.1.203
- www IN A 192.168.1.2
- [root@ns named]#
复制代码
- [root@ns named]# host www.yfdc.info
- Host www.yfdc.info not found: 3(NXDOMAIN)
- [root@ns named]#
复制代码
- C:\Documents and Settings\Yuri>ping www.yfdc.info
- Ping request could not find host www.yfdc.info. Please check the name and try ag
- ain.
- C:\Documents and Settings\Yuri>
复制代码
谁能告诉我哪TM错了。晕死 |
|