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

dns 관련해서 선배님들에 조언들 구합니다~

작성자 정보

  • zeus108 작성
  • 작성일

컨텐츠 정보

본문

안녕하세요 초보 리눅서입니다

테스트용으로 centos 5.4버전을 설치하고 named서비스를 실행중입니다
근데 문제가 내부나 외부에서 자기 도메인(gait.co.kr)에 대한 쿼리 응답은 잘해주는데
다른 도메인(www.naver.com) 은 denid가 나오면서 응답을 해주지 않습니다

서버IP가 10.10.10.2 번이고 서버 네임이 gait.co.kr 일때
로컬 pc 10.10.10.100 번이 dns설정을 10.10.10.2로하고 gait.co.kr를 질의하면
등록된 10.10.10.2이라고 응답을 해주고 www.naver.com을 질의하면

client 10.10.15.1#2013: view localhost_resolver: query (cache) 'www.naver.com/A/IN' denied
client 10.10.15.1#2014: view localhost_resolver: query (cache) 'www.naver.com/A/IN' denied

이렇게 에러가 나옵니다 ㅠㅠ
자신한테 정보가 없을때 상위 root도메인에 질의 잘하나 테스트해볼려구 하는거구요
여기저기 뒤져바도 도져히 모르겟어서 글을 남김니다~
고수 선배님들 도와주세효~ㅠㅠ

다른 설정 첨부드립니다

name.conf
[root@gait ~]# vi /etc/named.caching-nameserver.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 { any; };
        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";

        // 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 { localhost; };
};
logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};
view localhost_resolver {
        match-clients      { any; };
        match-destinations { any; };
        recursion yes;
        include "/etc/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
//
// 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 "52.219.118.in-addr.arpa" IN {
        type master;
        file "named.rev";
        allow-update { none; };
};

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


관련자료

댓글 1

LUFFY님의 댓글

  • LUFFY
  • 작성일
/etc/resolv.conf 에는 어떤 내용이 있나요?

공지사항


뉴스광장


  • 현재 회원수 :  60,035 명
  • 현재 강좌수 :  35,798 개
  • 현재 접속자 :  155 명