双网卡,在小型局域网中架个网站。征求DNS解决办法?

由 yghanzi 在 10-20-2002 14:33 发表:

双网卡,在小型局域网中架个网站。DNS服务器怎么配置??

有的说要named.boot caching*.noarch.rpm装了可我的分明就找不到这个文件。

谁能帮帮写个教材在SIR上,供我等小辈参考。谢了;)


由 北南南北 在 10-20-2002 15:55 发表:


http://www.linuxsir.com/bbs/showthr...p;threadid=4138

先看一下这个原创的教程,可能有点帮助。


===========================

请弟兄们发帖时要写个好标题,多谢!

===========================

每天以1000KM/H的速度在跑,感觉还是时间不够:(

“西学东渐,洋为中用” + 创造 = ?

linux ppc


由 skylove 在 10-20-2002 21:54 发表:

似乎你不是要方案,而是用法吧???

很简单,分配dns其实是地址——名字的转换,只要你ip定了,与你怎么组件网络解构无关的,只需要所有的机器都能访问到这台dns机器就成了 :)

http://www.redhat.com/docs/manuals/...figuration.html

这里你可以学到一些配置的资料


由 yghanzi 在 10-21-2002 14:36 发表:


1)#kwrite /etc/named.conf

===============================

options {

directory "/var/named";

};

//controls {

// inet 127.0.0.1 allow { localhost; } keys { rndckey; };

//};

zone "." IN {

type hint;

file "named.ca";

};

zone "yghong.com" IN {

type master;

file "yghong.com";

};

zone "0.0.127.in-addr.arpa" IN {

type master;

file "named.local";

};

zone "10.168.192.in-addr.arpa" IN {

type master;

file "10.168.192";

};

//include "/etc/rndc.key";

  1. kwirte /etc/resolv.conf

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

domain yghong.com.

nameserver 192.168.10.4

3)kwrite /var/named/10.168.192

+++++++++++++++++++++++++++++++++++++++++++++++++++++=

@ IN SOA ns.yghong.com. root.yghong.com. (

2002102000 ; Serial

28800 ; Refresh

14400 ; Retry

3600000 ; Expire

86400 ) ; Minimum

IN NS ns.yghong.com.

4 IN PTR www.yghong.com.

  1. /var/named/localhost.zone

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

$TTL 86400

$ORIGIN localhost.

@ 1D IN SOA @ root (

42 ; serial (d. adams)

3H ; refresh

15M ; retry

1W ; expiry

1D ) ; minimum

1D IN NS @

1D IN A 127.0.0.1

5)/var/named/named.local

============================================================

$TTL 86400

@ IN SOA localhost. root.localhost. (

1997022700 ; Serial

28800 ; Refresh

14400 ; Retry

3600000 ; Expire

86400 ) ; Minimum

IN NS localhost.

1 IN PTR localhost.

6)/var/named/yghong.com

==================================================================

@ IN SOA ns.yghong.com. root.yghong.com. (

2002102000 ; Serial

28800 ; Refresh

14400 ; Retry

3600000 ; Expire

86400 ) ; Minimum

IN A 192.168.10.4

IN NS ns.yghong.com.

localhost IN A 127.0.0.1

www IN A 192.168.10.4

我贴了上面6个文件,兄弟们帮我′析一下

测试:

  1. ping 192.168.10.4 能通

  2. ping 202.96.134.133 能通

  3. ping www.linuxsir.com 能通

  4. nslookup 192.168.10.4

提示:

server: 192.168.10.4

address: 192.168.10.4#53

**server can't find 4.10.168.192.in-addr.arpa:NXDOMAIN

或提示

::connection timed out;noservers could be reached

>


由 北南南北 在 10-22-2002 00:15 发表:


> quote: > > * * * > > IN A 192.168.10.4
>
> IN NS ns.ygho

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus