您的位置:首页 > 运维架构 > Linux

RedHat Linux AS 4.5 下DNS的配置步骤

2013-02-06 23:35 381 查看
---------------------------------------------------------------------------------------
[root@localhost ~]# more /etc/named.conf
//
// 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;
forwarders {202.101.172.35;202.101.172.46;};
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
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 "guoyJoe.cn" IN {
type master;
file "guoyJoe.cn.zone";
allow-update { none; };
};
zone "100.168.192.in-addr.arpa" IN {
type master;
file "192.168.100.rev";
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";

-----------------------------------------------------------------------------
[root@localhost ~]# more /var/named/guoyJoe.cn.zone
$TTL 86400
@ IN SOA guoyJoe.cn. root.guoyJoe.cn. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS dns.guoyJoe.cn.
dns IN A 192.168.100.2
www IN A 192.168.100.1
ca IN A 192.168.100.48
oa IN A 192.168.100.46
jwgl IN A 192.168.100.44
rsky IN A 192.168.100.40
xgdc IN A 192.168.100.42
pt IN A 192.168.100.38
pt2 IN A 192.168.100.39
nic IN A 192.168.100.9

[root@localhost ~]# more /var/named/192.168.100.rev
$TTL 86400
@ IN SOA guoyJoe.cn. root.guoyJoe.cn. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS dns.guoyJoe.cn.
2 IN PTR dns.guoyJoe.cn.
48 IN PTR ca.guoyJoe.cn.
1 IN PTR www.guoyJoe.cn.
46 IN PTR oa.guoyJoe.cn.
44 IN PTR jwgl.guoyJoe.cn.
40 IN PTR rsky.jzjcxy.cn.
42 IN PTR xgdc.guoyJoe.cn.
38 IN PTR pt.guoyJoe.cn.
39 IN PTR pt2.guoyJoe.cn.
99 IN PTR nic.guoyJoe.cn.

----------------------------------------------------------------------------------
[root@localhost /]# more /etc/resolv.conf
; generated by /sbin/dhclient-script
search dns.guoyJoe.cn
nameserver 192.168.100.2
----------------------------------------------------------------------------------
service named restart
rndc reload

**********本博客所有内容均为原创,如有转载请注明作者和出处!!!**********
Name: guoyJoe
QQ: 252803295
Email: oracledba_cn@hotmail.com
Blog: http://blog.csdn.net/guoyJoe
ITPUB: http://www.itpub.net/space-uid-28460966.html
OCM: http://education.oracle.com/education/otn/YGuo.HTM _____________________________________________________________
加群验证问题:哪些SGA结构是必需的,哪些是可选的?否则拒绝申请!!!
答案在:/article/1630191.html
Oracle@Paradise  总群:127149411
Oracle@Paradise No.1群:177089463(已满)
Oracle@Paradise No.2群:121341761
Oracle@Paradise No.3群:140856036
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: