질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

리눅스 네임서버 구축 중 질문입니다.

작성자 정보

  • 리눅스정복하자 작성
  • 작성일

컨텐츠 정보

본문

/var/named/chroot/etc/named.caching-nameserver.conf명령어를 통해  네임서버를 설정하고 다른것들도 설정하고 /etc/rc.d/init.d/named restart 명령어로 재시작을 했는데

설정오류가 /etc/named.caching-nameserver.conf:42: '}' expected near end of file 이렇게 발생하는데 제가 설정을 잘못한건지.. 한번 봐주셨으면 합니다.

//
// 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 { any; };
        listen-on-v6 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";

        // Those options should be used carefully because they disable port
        // randomization
         query-source    port 53;
         query-source-v6 port 53;

        allow-query     { any; };
        allow-query-cache { any; };
};
logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};
view localhost_resolver {
        match-clients      { any; };
        match-destinations { any; };
        recursion no;
        include "/etc/named.rfc1912.zones";
};
빠른 답변 부탁드립니다 ㅜㅜ

관련자료

댓글 1

Ongsam님의 댓글

  • Ongsam
  • 작성일
저 오류는  42번째 줄에서 오류가 있다는 것인데, 혹시 문단을 }; 이걸로 마무리를 하지않았거나, '}'문자가 추가로 들어가 있는지 보시기 바랍니다.

지금 위에 config를 본결과 42번째 줄이 먼지 파악하기 힘드네요 ㅎㅎ;;

직접 42번째 줄을 찾아가서 수정하시기 바랍니다..

공지사항


뉴스광장


  • 현재 회원수 :  60,138 명
  • 현재 강좌수 :  36,200 개
  • 현재 접속자 :  275 명