Dynamic Name Server
1)install named
1@@@@named is belong to package "bind*"
#yum -y install bind* @@@install all packages.
2@@@@others
@@@Note:
@@@environment is RHEL6.2_x86_64
@@@kernel => 2.6.32-220........
2)Configure named
1@@@@/etc/named.conf
[root@station78 named]# cat /etc/named.conf
options {
directory "/var/named";
};
zone "." IN {
type hint;
file "named.ca";
};
zone "example.com" IN {
type master;
file "example.com.zone";
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "192.168.0.zone";
};
2@@@@/var/named
[root@station78 named]# cat example.com.zone
$TTL 1D
@ IN SOA station78.example.com. root.station78.example.com. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ IN NS station78.example.com.
example.com. IN A 192.168.0.78
station78.example.com. IN A 192.168.0.78
example.com. IN MX 2 station78.example.com.
@@@
[root@station78 named]# cat 192.168.0.zone
$TTL 1D
@ IN SOA station78.example.com. root.station78.example.com. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ IN NS station78.example.com.
78.0.168.192.in-addr.arpa. IN PTR station78.example.com.
3@@@@restart the named
[root@station78 named]# service named restart
Stopping named:
[ OK ]
Starting named: [ OK ]
[root@station78 named]# cat /etc/resolv.conf
# Generated by NetworkManager
domain jini.com.cn
search jini.com.cn example.com
nameserver 192.168.0.78
@@@
[root@station78 named]# dig example.com
; <<>> DiG 9.7.3-P3-RedHat-9.7.3-8.P3.el6 <<>> example.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53053
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
@@@
[root@station78 named]# dig -x 192.168.0.78
; <<>> DiG 9.7.3-P3-RedHat-9.7.3-8.P3.el6 <<>> -x 192.168.0.78
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33186
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
RHEL6 DNS
原创
©著作权归作者所有:来自51CTO博客作者emperor_majesty的原创作品,谢绝转载,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
使用dnsmasq实现自建DNS
使用dnsmasq自建DNS
dnsmasq 自建DNS -
RHEL6中DNS配置
RHEL6的DNS配置简介
linux DNS 休闲 RHEL6 redhat6 -
rhel6 dhcp dns配置小贴士
rhel6 dhcp dns配置小贴士
rhel6 dhcp dns配置 -
Rhel6 DNS配置全过程
这都是本人在学习linux的时候的学习总结,希望能够帮助大家
server 休闲 cd package only -
RHEL6 Mplayer
It is a shell
职场 mplayer 休闲 RHEL6