10.0.0.11解析
10.0.0.10解析
系统:freebsd7.2
bind版本:/usr/ports/dns/bind95
安装:
#cd /usr/ports/dns/bind95
#makelqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x Options for bind95-base 9.5.1.2 x
x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x
x x [X] SSL Building without OpenSSL removes DNSSEC x x
x x [X] XML Support for xml statistics output x x
x x [X] IDN Add IDN support to dig, host, etc. x x
x x [X] REPLACE_BASE Replace base BIND with this version x x
x x [ ] LARGE_FILE 64-bit file support x x
x x [ ] SIGCHASE dig/host/nslookup will do DNSSEC validation x x
x x [ ] IPV6 IPv6 Support (autodetected by default) x x
x x [X] THREADS Compile with thread support x x
x x x x
x x x x
x x x x
x x x x
x x x x
x x x x
x x x x
tqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjqu
x [ OK ] Cancel x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
#make install
配置named
配置 named.conf
options {
directory "/etc/namedb";
pid-file "/var/run/named/pid";
dump-file "/var/dump/named_dump.db";
statistics-file "/var/stats/named.stats";
allow-query {any; };
listen-on { 10.0.0.1; };
listen-on-v6 {none; };
};
logging {
channel query_log {
file "/etc/namedb/query.log" versions 3 size 20m;
severity info;
print-time yes;
print-category yes;
};
category queries {
query_log;
};
};
key "rndc-key" {
algorithm hmac-md5;
secret "3AhxRPcWm96YOglJ2po0KA==";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
view "host1" {
match-clients {10.0.0.10; };
zone "." {
type hint;
file "named.root";
};
zone "jazz.com" IN {
type master;
file "host1/jazz.zone";
};
zone "0.0.10.in-addr.arpa" {
type master;
file "host1/jazz.arpa";
};
};
view "host2" {
match-clients {10.0.0.11; };
zone "." {
type hint;
file "named.root";
};
zone "jazz.com" IN {
type master;
file "host2/jazz.zone";
};
zone "0.168.192.in-addr.arpa" {
type master;
file "host2/jazz.arpa";
};
};
host1目录文件内容为
#jazz.arpa file
$TTL 86400
@ IN SOA jazz.com. root.jazz.com.(
20031001;
7200;
3600;
43200;
86400);
@ IN NS jazz.com.
1 IN PTR
1 IN PTR ns.jazz.com.
#jazz.zone file
$TTL 4320 ; 1 hour 12 minutes
@ IN SOA jazz.com. root.ns.jazz.com. (
2007101701 ;
3600 ;
1800 ;
36000 ;
3600 ) ;
IN NS ns.jazz.com.
ns IN A 10.0.0.1
www IN A 10.0.0.1
host2目录文件内容为
#jazz.arpa file
$TTL 86400
@ IN SOA jazz.com. root.jazz.com.(
20031001;
7200;
3600;
43200;
86400);
@ IN NS jazz.com.
11 IN PTR
11 IN PTR ns.jazz.com.
#jazz.zone file
$TTL 4320 ; 1 hour 12 minutes
@ IN SOA jazz.com. root.ns.jazz.com. (
2007101701 ;
3600 ;
1800 ;
36000 ;
3600 ) ;
IN NS ns.jazz.com.
ns IN A 192.168.0.11
www IN A 192.168.0.11
完毕
10.0.0.11解析
10.0.0.10解析
转自:
阅读(1208) | 评论(0) | 转发(0) |