由 hew 在 08-14-2003 20:35 发表:
RH8下的DNS实验
我用我的RH8做DNS实验。不成功请大家帮我看看!
hostname:
>
> 源码:
>
> * * *
>
> ns.myhew.org
>
> * * *
/etc/name.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 "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 "myhew.org" IN {
> >
> type master;
> >
> file "myhew.org.zone";
> >
> };
> >
> zone "10.63.10.in-addr.arpa" IN {
> >
> type master;
> >
> file "10.63.10.zone";
> >
> };
> >
> include "/etc/rndc.key";
> >
>
>
> * * *
myhew.org.zone:
>
> 源码:
>
> * * *
>
> $TTL 86400
> >
> @ 1D IN SOA ns.myhew.org. hew.ns.myhew.org. (
> >
> 42 ; serial (d. adams)
> >
> 3H ; refresh
> >
> 15M ; retry
> >
> 1W ; expiry
> >
> 1D ) ; minimum
> >
>
> >
> 1D IN NS ns.myhew.org.
> >
> ns 1D IN A 10.63.10.132
> >
> www 1D IN A 10.63.10.132
> >
> ftp 1D IN A 10.63.10.144
> >
>
>
> * * *
10.63.10.zone:
>
> 源码:
>
> * * *
>
> $TTL 86400
> >
> @ IN SOA ns.myhew.org. root.ns.myhew.org. (
> >
> 1997022700 ; Serial
> >
> 28800 ; Refresh
> >
> 14400 ; Retry
> >
> 3600000 ; Expire
> >
> 86400 ) ; Minimum
> >
> IN NS ns.myhew.org.
> >
>
> >
> 132 IN PTR www.myhew.org.
> >
> 144 IN PTR ftp.myhew.org.
> >
>
>
> * * *
tail -n 15 /var/log/messages:
>
> 源码:
>
> * * *
>
> Aug 14 04:35:35 ns named[1711]: no longer listening on 10.63.10.132#53
> >
> Aug 14 04:35:35 ns named[1708]: exiting
> >
> Aug 14 04:35:36 ns named[1746]: starting BIND 9.2.1 -u named
> >
> Aug 14 04:35:36 ns named[1746]: using 1 CPU
> >
> Aug 14 04:35:36 ns named[1749]: loading configuration from '/etc/named.conf'
> >
> Aug 14 04:35:36 ns named: named startup succeeded
> >
> Aug 14 04:35:36 ns named[1749]: no IPv6 interfaces found
> >
> Aug 14 04:35:36 ns named[1749]: listening on IPv4 interface lo, 127.0.0.1#53
> >
> Aug 14 04:35:36 ns named[1749]: listening on IPv4 interface eth0, 10.63.10.132#53
> >
> Aug 14 04:35:36 ns named[1749]: command channel listening on 127.0.0.1#953
> >
> Aug 14 04:35:36 ns named[1749]: zone 10.63.10.in-addr.arpa/IN: loaded serial 1997022700
> >
> Aug 14 04:35:36 ns named[1749]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
> >
> Aug 14 04:35:36 ns named[1749]: zone localhost/IN: loaded serial 42
> >
> Aug 14 04:35:36 ns named[1749]: zone myhew.org/IN: loaded serial 42
> >
> Aug 14 04:35:36 ns named[1749]: running
> >
>
>
> * * *
用nslookup 的结果:
>
> 源码:
>
> * * *
>
>
> >
> Server: 10.16.14.132
> >
> Address: 10.16.14.132#53
> >
>
> >
> ** server can't find www.myhew.org: NXDOMAIN
> >
>
> >
>
>
> * * *
由 Glue 在 08-14-2003 21:45 发表:
你的IP?
前面一直在做10.63.10.132。
最后nslookup的是10.16.14.132?
-_-
由 lanmaster 在 08-15-2003 07:28 发表:
1D IN NS ns.myhew.org.
ns 1D IN A 10.63.10.132
www 1D IN A 10.63.10.132
ftp 1D IN A 10.63.10.144
能给解释一下这个吗?
成长中的菜鸟!
E-Mail:qcy_[email protected]
QQ :7118899
由 hew 在 08-15-2003 08:18 发表:
我的IP是10.63.10.132
/etc/resolv.conf 里的nameserver 是10.63.10.132
1D IN NS ns.myhew.org. // 我的nameserver主机
ns 1D IN A 10.63.10.132 //ns.myhew.org 的A记录,写全的话是
ns.myhew.org.org. 1D IN A10.63.10.132
www 1D IN A 10.63.10.132 //与上同
ftp 1D IN A 10.63.10.144 //与上同
此人已死,有事烧纸.
广告:
我的个人小站
由 Glue 在 08-15-2003 09:16 发表:
那,10.16.14.132是什么?
你是在那台上里nslookup!!!
-_-
由 bigsw 在 08-15-2003 09:41 发表:
> quote:
>
> * * *
>
> 最初由 hew 发表
>
> **我的IP是10.63.10.132
>
> /etc/resolv.conf 里的nameserver 是10 **