BIND 셋팅

* /etc/named.conf 설정


[#M_ more.. | less.. |/ 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; };
        listen-on port 53 { xxx.xxx.xxx.xxx; };
        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; };
        allow-transfer  { xxx.xxx.xxx.xxx; };
        recursion yes;
};


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


zone “.” IN {
        type hint;
        file “named.ca”;
};


include “/etc/named.rfc1912.zones”;

_M#]



##################################################################
/etc/named.rfc1912.zones 설정
##################################################################


[#M_ more.. | less.. |// named.rfc1912.zones:
//
// Provided by Red Hat caching-nameserver package
//
// ISC BIND named zone configuration for zones recommended by
// RFC 1912 section 4.1 : localhost TLDs and address zones
// and http://www.ietf.org/internet-drafts/draft-ietf-dnsop-default-local-zones-02.txt
// (c)2007 R W Franks
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

zone “.” IN {
        type hint;
        file “named.ca”;
};


zone “localdomain” IN {
        type master;
        file “localdomain.zone”;
        allow-update { none; };
};


zone “localhost” IN {
        type master;
        file “localhost.zone”;
        allow-update { none; };
};


zone “0.0.127.in-addr.arpa” IN {
        type master;
        file “named.local”;
        allow-update { none; };
};


zone “0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa” IN {
        type master;
        file “named.ip6.local”;
        allow-update { none; };
};
zone “255.in-addr.arpa” IN {
        type master;
        file “named.broadcast”;
        allow-update { none; };
};


zone “0.in-addr.arpa” IN {
        type master;
        file “named.zero”;
        allow-update { none; };
};
zone “lovecoco.net” IN {
        type master;
        file “zone-lovecoco.net”;
        allow-update { none; };
};



_M#]



##################################################################
/var/named/chroot/var/named/zone-lovecoco.net 설정
##################################################################


[#M_ more.. | less.. |$TTL 360
@       IN      SOA     ns1.lovecoco.net. root.lovecoco.net. (
                                 2008070904  ;Serial
                                 21600       ;Refresh ( 6 hours)
                                 1800        ;Retry   (30 minutes)
                                 1209600     ;Expire  (14 days)
                                 360)          ;Minimum ( 0 Seconed)
                    IN    A      xxx.xxx.xxx.xxx
                    IN    NS     ns1.lovecoco.net.
;ns1.lovecoco.net.    IN   NS     ns1.lovecoco.net.
                    IN    MX  0  mail
mail                IN    A  xxx.xxx.xxx.xxx

; Host addresses
ns1                 IN    A      xxx.xxx.xxx.xxx
ftp                 IN    A      xxx.xxx.xxx.xxx
www01   IN    CNAME 
www.lovecoco.net.
www                 IN    A      xxx.xxx.xxx.xxx

_M#]