文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Redhat linux DNS configuration

Redhat linux DNS configuration

时间:2009-04-10  来源:austdocs

1.Install the bind distributtion.   2.when you install the bind correctly,you will be find these files in /etc and /var/named directory! /etc/named.conf /var/named/chroot/var/named/named.ca /var/named/chroot/var/named/localdomain.zone /var/named/chroot/var/named/named.zero /var/named/chroot/var/named/data /var/named/chroot/var/named/localhost.zone /var/named/chroot/var/named/named.ip6.local /var/named/chroot/var/named/slaves /var/named/chroot/var/named/named.broadcast /var/named/chroot/var/named/named.local   3.configure the main file /etc/named.conf. in this example,the 192.168.0.98 is the dns server!domain is hhelian.com the content of the named.conf as following:
//
// named.conf for Red Hat caching-nameserver
//
options {
 directory "/var/named";
 dump-file "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
 /*
  * 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 "hhelian.com" IN {
type master;
file "hhelian.com.zone";
allow-transfer {
#192.168.0.98;
none;
};
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "192.168.0.arpa";
allow-transfer {
#192.168.0.98;
none;
 };
};
zone "localdomain" IN {
 type master;
 file "localdomain.zone";
 allow-update { none; };
};
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 "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
        type master;
 file "named.ip6.local";
 allow-update { none; };
};
zone "255.in-addr.arpa" IN {
 type master;
 file "named.broadcast";
 allow-update { none; };
};
zone "0.in-addr.arpa" IN {
 type master;
 file "named.zero";
 allow-update { none; };
};
include "/etc/rndc.key"; quit with save!   4.config the hhelian.com.zone and 192.168.0.arpa vi hhelian.com #create the file hhelian.com the content of the hhelian.com.zone as following:
$TTL  86400
@ IN SOA  dns.hhelian.com. root.hhelian.com. ( 2009041001;serial
28800; refresh
14400;retry
720000;expire
86400;minimum
)
hhelian.com.    IN   NS   dns.hhelian.com.
#dns        IN   NS    192.168.0.98
www.hhelian.com.    IN   A   192.168.0.98
hhelian.com.    IN    MX  10  mail.hhelian.com. quit with save!
the content of the 192.168.0.arpa as following:   $TTL  86400 @  IN   SOA  dns.hhelian.com.  root.hhelian.com. ( 2009041001
28800
14400
720000
86400 )
0.168.192.in-addr.arpa.    IN   NS     dns.hhelian.com.
98.0.168.192.in-addr.arpa.    IN   PTR  dns.hhelian.com.
98    IN   PTR    www.hhelian.com.
quit with save! 5.config the /etc/resolv.conf   domain hhelian.com nameserver 192.168.0.98
quit with save!   6.start the service of named! 7.use nslookup www.hhelian.com test the dns configuration!
相关阅读 更多 +
排行榜 更多 +
方舟生存进化2.0

方舟生存进化2.0

动作格斗 下载
悦听FM广播收音机版

悦听FM广播收音机版

浏览阅读 下载
巴士模拟器

巴士模拟器

体育竞技 下载