내 첫 DNS 세팅 자료

운영체제/서비스 관련 2007/09/01 23:28 posted by zekill
옛날옛적 집에 리눅스두고 한번 공부해본다하고 끄적댔던...ㅋㅋ
이런거 지금 정리하면서 보니까 새로운데...ㅋㅋ

=====================================

/etc/named.conf
######################################################
// generated by named-bootconf.pl

options {
        directory "/var/named";
        /*
         * If there is a firewall between you and nameservers you want
         * to talk to, you might need to uncomment the query-source
         * directive below.  Previous versions of BIND always asked
         * questions using port 53, but BIND 8.1 uses an unprivileged
         * port by default.
         */
        // query-source address * port 53;
};

//
// a caching only nameserver config
//
zone "." IN {
        type hint;
        file "named.root";
};

zone "localhost" IN {
        type master;
        file "zone-localhost";
        allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
        type master;
        file "zone-0.0.127.in-addr.arpa";
        allow-update { none; };
};

zone "zekill.pe.kr" IN {
        type master;
        file "zone-zekill.pe.kr";
        allow-transter { none; };
};

zone "xxx.xxx.xxx.in-addr.arpa" IN {
        type master;
        file "zone-xxx.xxx.xxx.in-addr.arpa";
        allow-transter { none; };
};

key "key" {
        algorithm hmac-md5;
        secret "mtkPOlnHDiZLQQRFkDuFhBIxEPpSaEFZoWUpjhoTrBOcZaQdbYRhhryEMOpf";
};
######################################################

/var/named/zone-zekill.pe.kr
############################################
$TTL    86400
$ORIGIN ns.zekill.pe.kr.
@               IN      SOA     ns.zekill.pe.kr.    root.zekill.pe.kr.
(
                        20020613      ;Serial
                        10800           ;Refresh
                        3600            ;Retry
                        3600000         ;Expire
                        43200           ;Minimum
)

                IN      NS      ns.zekill.pe.kr.

                IN      A       xxx.xxx.xxx.xxx
                IN      HINFO   "Intel Pentium" "Linux"


localhost       IN      A       127.0.0.1
ns              IN      A       xxx.xxx.xxx.xxx
maruta          IN      A       xxx.xxx.xxx.xxx
www             IN      A       xxx.xxx.xxx.xxx
ftp             IN      CNAME   @
###########################################


/var/named/zone-xxx.xxx.xxx.in.addr.arpa
###########################################
$TTL    86400
@       IN      SOA     ns.zekill.pe.kr. root.ns.zekill.pe.kr.  (
                                      20020613 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
              IN      NS      ns.zekill.pe.kr.

20       IN      PTR     ns.zekill.pe.kr.
###########################################


/var/named/zone-localhost
###########################################
$TTL    86400
$ORIGIN localhost.
@                       1D IN SOA       @ root (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum

                        1D IN NS        @
                        1D IN A         127.0.0.1
###########################################


/var/named/zone-0.0.127.in-addr.arpa
###########################################
$TTL    86400
@       IN      SOA     localhost. root.localhost.  (
                                      1997022700 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
              IN      NS      localhost.

1       IN      PTR     localhost.
###########################################


/etc/host.conf
###########################################
# Lookup names via /etc/hosts first, then by DNS query
order hosts, bind
# We don't have machines with multiple addresses
multi on
###########################################


/etc/hosts
###########################################
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               maruta localhost.localdomain localhost
xxx.xxx.xxx.20          maruta ns.zekill.pe.kr ns
###########################################
2007/09/01 23:28 2007/09/01 23:28
TAG ,

Trackbas address :: http://zekill.pe.kr/blog/trackback/114

[로그인][오픈아이디란?]
오픈아이디로만 댓글을 남길 수 있습니다