Lesson24 実習3


named.conf

//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {

listen-on port 53 {
any;
};

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";
recursion yes;

dnssec-enable yes;
dnssec-validation yes;

dnssec-lookaside auto;

forwarders {
192.168.5.1;
};
/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";

};

logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};

};

zone "." IN { type hint; file "named.ca";
};

zone "example.org" { type master; file "example.org.zone";

};

zone "5.168.192.in-addr.arpa" IN {
type master;
file "example.org.rev";
};

include "/etc/named.rfc1912.zones";


example.org.zone


$ORIGIN example.org.
$TTL 1D

@ SOA dns.example.org. root.example.org. (
2012100502 ;serial

10800 ;refresh
3600 ;retry
604800 ;expire
86400 ) ; minimum(negative cache)

IN NS dns.example.org.

IN A 192.168.5.75

IN MX 5 mx.example.org.
dns IN A 192.168.5.75
www IN A 192.168.5.75
mx IN A 192.168.5.75


example.org.rev


$ORIGIN 5.168.192.in-addr.arpa.
$TTL 1D

@ IN SOA dns.example.org. root.example.org. (
2012101302 ; serial
3600 ; refresh 1Hour
900 ; retry 15min
604800 ; expiry 1w
3600 ; minimum 24Hour

);

IN NS dns.example.org.
IN A 192.168.5.75

75 IN PTR www.example.org.

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

*

*