FREEDOM. FRIENDS. FEATURES. FIRST.
페도라 한국 사용자 모임

페도라리눅스 14 사용자입니다. 네임서버를 구축중인데... error를 못 잡겠네여.. 고수님들 헬프~~~

게시판 Tech/Tip 페도라리눅스 14 사용자입니다. 네임서버를 구축중인데... error를 못 잡겠네여.. 고수님들 헬프~~~

  • This topic has 0개 답변, 1명 참여, and was last updated 9 years, 6 months 전에 by 브라자터져. This post has been viewed 16 times
  • 만든이
    게시글
  • #12182
    브라자터져
    참가자
    • 게시글4
    • 댓글1
    • 총합5
    • ★★
    @wonksr

    고수님들에게 조언을 듣고자 합니다..
    네임서버를 구축하고 있습니다....흑흑... 일주일 동안 헤매고 있습니다.
    먼저
    작업 환경을 알려 드리면
    - Fedora linux14 버젼
    - hostname : Fedora14.e-zis.co.kr
    - bind ver 9.7.4
    - ifconf 상  IP는 192.168.219.11
    - test domain은  e-wkk.co.kr

    [root@Fedora14 named]# ifconfig
    eth0      Link encap:Ethernet  HWaddr BC:AE:C5:44:60:FB  
              inet addr:192.168.219.11  Bcast:192.168.219.255  Mask:255.255.255.0
              inet6 addr: fe80::beae:c5ff:fe44:60fb/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:33531 errors:0 dropped:0 overruns:0 frame:0
              TX packets:35189 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:34527819 (32.9 MiB)  TX bytes:3798710 (3.6 MiB)
              Interrupt:45 Base address:0xe000

    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:41 errors:0 dropped:0 overruns:0 frame:0
              TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:3713 (3.6 KiB)  TX bytes:3713 (3.6 KiB)

    열심히 세팅을 하고 .. 해서 . named를 실행하면 아래와 같이 error가 나면서 실패 로 떨어집니다..

    쩝....

    [root@Fedora14 etc]# service named start
    named 시작 중:
    Error in named configuration:
    zone localhost.localdomain/IN: loaded serial 0
    zone localhost/IN: loaded serial 0
    zone e-wkk.co.kr/IN: loaded serial 3538665438
    zone 219.168.192.in-addr.arpa/IN: NS '219.168.192.in-addr.arpa' has no address records (A or AAAA)
    zone 219.168.192.in-addr.arpa/IN: not loaded due to errors.
    _default/219.168.192.in-addr.arpa/IN: bad zone
    zone 1.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: loaded serial 0
    zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
    zone 0.in-addr.arpa/IN: loaded serial 0
                                                               [실패]

    제가 열심히 설정한 내용들입니다......

    아래 파일이 위치한 곳은  ... /var/named/chroot/etc/

    named.conf 설정 내용

    options {
            listen-on port 53 {any ; };
    //      listen-on port 53 { 192.168.219.11; }; // inserted by won
    //      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";
    //      allow-query     { localhost; };
            allow-query     { any; }; // inserted by won
            recursion yes;

            dnssec-enable yes;
            dnssec-validation yes;
            dnssec-lookaside auto;

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

            managed-keys-directory "/var/named/dynamic";
    };

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

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

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

    named.rfc1912.zones 내용

    // 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 "localhost.localdomain" IN {
            type master;
            file "named.localhost";
            allow-update { none; };
    };

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

    // ********* inserted by won***************

    zone "e-wkk.co.kr" IN {
            type master;
            file "e-wkk.co.kr.zone";
            allow-update { none; };
    };

    zone "219.168.192.in-addr.arpa" IN {
            type master;
            file "e-wkk.co.kr.rev";
            allow-update { none; };
    };

    "named.rfc1912.zones" 59L, 1290C

     아래 파일들이 위치한 곳은  /var/named/chroot/var/named

    e-wkk.co.kr.zone 의 설정 내용은 아래

    $TTL 86400
    @       IN SOA  ns.e-wkk.co.kr. root.e-wkk.co.kr. (
                                    201107161054    ; serial
                                            28800   ; refresh
                                            7200    ; retry
                                            1W      ; expire
                                            86400 ) ; minimum
    ;
            IN      NS      @
            IN      MX 10   mail.e-wkk.co.kr.
    ;
    @       IN      A       192.168.219.11
    www     IN      A       192.168.219.11
    mail    IN      A       192.168.219.11
                                                                                                             

    e-wkk.co.kr.rev 내용은 아래

    $TTL 86400
    @       IN SOA  ns.e-wkk.co.kr. root.e-wkk.co.kr. (
                                    201107161054    ; serial
                                            28800   ; refresh
                                            7200    ; retry
                                            1W      ; expire
                                            86400 ) ; minimum
    ;
            IN      NS      @

    ;
    11      IN      PTR     e-wkk.co.kr.
    11      IN      PTR     mail.e-wkk.co.kr.
    11      IN      PTR     www.e-wkk.co.kr.
    ~                                                                                                                            
    ~                                                                                                                            
    ~                                                                                                                            
    ~                                                                                                                            
    ~                                                                                                                            
    ~                                                                                                                            
    ~                                                                                                                            
    ~                                                                                                                            
    ~                                                                                                                            
    ~                                                                                                                            
    ~                                                                                                                            
    ~                                                                                                                            
    ~                                                                                                                            
    ~                                                                                                                            
    ~                                                                                                                            
    ~                                                                                                                            
    ~                                                                                                                            
    ~                                                                                                                            
    ~                                                                                                                            
    ~                                                                                                                            
    ~                                                                                                                            
    ~                                                                                                                            
    ~                                                                                                                            
    ~                                                                                                                            
    "e-wkk.co.kr.rev" 14L, 253C

    문법 체크를 하면 아래와 같이 무결점....

    [root@Fedora14 etc]# named-checkconf named.conf
    [root@Fedora14 etc]# named-checkconf named.rfc1912.zones

    [root@Fedora14 named]# named-checkzone e-wkk.co.kr e-wkk.co.kr.zone
    zone e-wkk.co.kr/IN: loaded serial 3538665438
    OK

    reverse mapping 만 아래와 같이 이렇게 error가 뜨네여...

    [root@Fedora14 named]# named-checkzone e-wkk.co.kr e-wkk.co.kr.rev
    zone e-wkk.co.kr/IN: NS 'e-wkk.co.kr' has no address records (A or AAAA)
    zone e-wkk.co.kr/IN: not loaded due to errors.
                                                                                                                         

    고수님들의 한 수 지도를 부탁드립니다....

    이번에 홈서버를 직접 구축해 보고자... 이사이트를 힘겹게 찾았습니다.


     


    함 해보자... 나두 할 수 있다.... 쩝..

  • 답변은 로그인 후 가능합니다.