ypbind-1.19-7.el5
bind-libs-9.3.4-6.P1.el5
bind-devel-9.3.4-6.P1.el5
bind-9.3.4-6.P1.el5
bind-utils-9.3.4-6.P1.el5
bind-chroot-9.3.4-6.P1.el5
bind-libbind-devel-9.3.4-6.P1.el5
bind-sdb-9.3.4-6.P1.el5
caching-nameserver-9.3.4-6.P1.el5
[root@localhost chroot]# ls
dev etc var
[root@localhost etc]# ls
localtime named.caching-nameserver.conf named.rfc1912.zones rndc.key
listen-on port 53 { any; }; //侦听接口
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
query-source port 53;
query-source-v6 port 53;
allow-query { any; }; //接受哪些主机查询
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
view localhost_resolver {
match-clients { any; }; //匹配主机
match-destinations { any; };
recursion yes;
type hint;
file "named.ca";
};
type master;
file "localdomain.zone";
allow-update { none; };
};
type master;
file "test.com.zone";
allow-update { none; };
};
type master;
file "test.com.local";
allow-update { none; };
[root@localhost named]# ll
drwxrwx--- 2 named named 4096 2004-08-26 data
-rw-r----- 1 root named 198 2008-02-29 localdomain.zone
-rw-r----- 1 root named 195 2008-02-29 localhost.zone
-rw-r----- 1 root named 427 2008-02-29 named.broadcast
-rw-r----- 1 root named 1892 2008-02-29 named.ca
-rw-r----- 1 root named 424 2008-02-29 named.ip6.local
-rw-r----- 1 root named 426 2008-02-29 named.local
-rw-r----- 1 root named 427 2008-02-29 named.zero
drwxrwx--- 2 named named 4096 2004-07-27 slaves
[root@localhost named]# cp -p named.local test.com.local 反向文件
[root@localhost named]# ll
drwxrwx--- 2 named named 4096 2004-08-26 data
-rw-r----- 1 root named 198 2008-02-29 localdomain.zone
-rw-r----- 1 root named 195 2008-02-29 localhost.zone
-rw-r----- 1 root named 427 2008-02-29 named.broadcast
-rw-r----- 1 root named 1892 2008-02-29 named.ca
-rw-r----- 1 root named 424 2008-02-29 named.ip6.local
-rw-r----- 1 root named 426 2008-02-29 named.local
-rw-r----- 1 root named 427 2008-02-29 named.zero
drwxrwx--- 2 named named 4096 2004-07-27 slaves
-rw-r----- 1 root named 426 2008-02-29 test.com.local
-rw-r----- 1 root named 195 2008-02-29 test.com.zone
$TTL 86400
@ IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN A 192.168.1.200
IN MX 10 mail.test.com.
mail IN A 192.168.1.200
www IN A 192.168.1.200
$TTL 86400
@ IN SOA test.com. root.test.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS test.com.
200 IN PTR mail.test.com.
200 IN PTR www.test.com.
; generated by /sbin/dhclient-script
search test.com
nameserver 192.168.1.200
Server: 192.168.1.200
Address: 192.168.1.200#53
Address: 192.168.1.200
Server: 192.168.1.200
Address: 192.168.1.200#53
Address: 192.168.1.200
Server: 192.168.1.200
Address: 192.168.1.200#53
200.1.168.192.in-addr.arpa name = mail.test.com.