由 stanlogin 在 09-04-2003 12:03 发表:
简单的DNS配置说明和相关文件范例
DNS服务器版本是 bind.9.2.x ,RH和MDK的最高版本现在大概都是它。
配置一个test.com的域
在该域下建立一个HOST:root.test.com,指向192.168.1.254
把该域的NS指向root.test.com
把该域的MX指向root.test.com
我没有设置test.com的反向解析,因为我用不上,如果大家想设置,可以参考/var/named/named.local,也很简单的~
以后我会在该贴针对DNS的一些相关问题做些补充。
下面是配置文件范例
_____>小刀
由 stanlogin 在 09-04-2003 12:04 发表:
/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;
> >
> forward first;
> >
> forwarders {
> >
> 202.96.209.6;
> >
> };
> >
> fetch-glue no;
> >
> recursion no;*/
> >
> allow-query {192.168.88/24;192.168.1/24;127.0.0/8;};
> >
> allow-transfer {192.168.1.100;};
> >
> transfer-format many-answers;
> >
> };
> >
>
> >
> //
> >
> // 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 "test.com" IN {
> >
> type master;
> >
> file "test.com.zone";
> >
> allow-update { none; };
> >
> };
> >
> include "/etc/rndc.key";
> >
>
>
> * * *
<font face="腩戾,verdana,