воскресенье, 18 мая 2008 г.

DNS сервер BIND

NAMED.CONF

//
// named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver 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.
//
// DO NOT EDIT THIS FILE - use system-config-bind or an editor
// to create named.conf - edits to this file will be lost on
// caching-nameserver package upgrade.
//

options {
listen-on port 53 { 127.0.0.1; 192.168.0.13; };
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";
allow-query { 192.168.0.0/24; };
recursion no;
};

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

zone "localhost" IN {
type master;
file "localhost.zone";
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "127.0.0.zone";
};

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

zone "linux.ua2" {
type master ;
file "alp.db" ;

};

zone "0.168.192.in-addr.arpa" {
type master ;
file "192.168.0.rev" ;
};



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


ALP.DB


$TTL 3H
@ IN SOA fedora.linux.ua2. root.fedora.linux.ua2. (
20080359
10800
3600
360000
86400 )
IN NS fedora.linux.ua2.
IN A 192.168.0.13
fedora IN A 192.168.0.13

crocus IN A 192.168.0.15



deb IN A 192.168.0.13
alt IN A 192.168.0.13
torkret IN A 192.168.0.13
intuit IN A 192.168.0.13
my-site IN A 192.168.0.13
joomla IN A 192.168.0.13


192.168.0.rev


$TTL 3H
@ IN SOA fedora.linux.ua2. root.fedora.linux.ua2. (
200803203
10800
3600
3600000
86400 )

@ IN NS fedora.linux.ua2.

13 IN PTR fedora.linux.ua2.

15 IN PTR crocus.linux.ua2.


13 IN PTR deb.linux.ua2.
13 IN PTR alt.linux.ua2.
13 IN PTR torkret.linux.ua2.
13 IN PTR intuit.linux.ua2.
13 IN PTR my-site.linux.ua2.
13 IN PTR joomla.linux.ua2.

Комментариев нет: