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

페도라 5에서 DNS설정

작성자 정보

  • 이대연 작성
  • 작성일

컨텐츠 정보

본문

dns서버, 웹서버 각각 서버가 있습니다

그래서 dns서버에서 웹서버로 돌려주려고 합니다.

dns서버에 APM도 설치되어있습니다.

test.co.kr   ->네임서버 ip:000.000.000.000

test.com    ->웹서버 ip: 000.000.000.001

이렇게 설정을 했습니다.

bind-libs-9.3.4-1.fc5
bind-utils-9.3.4-1.fc5
bind-9.3.4-1.fc5

rpm 설치 했습니다

그런데 이상하게 dns서버(000.000.000.000)에있는 apm을 읽어드립니다

nslookup test.co.kr이라고 쳐도 잘 나오고

nslookup test.com 이라고 쳐도 잘 나옵니다

 

제발 알려주십시오 고수님들...

 

 

/etc/named.cont 내용입니다.

--------------------------------------------named.conf-------------------------------------------------------

//
// named.conf for Red Hat caching-nameserver
//

options {
        directory "/var/named";
        dump-file "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        /*
         * 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
//
controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

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; };
};
include "/etc/rndc.key";

zone "test.co.kr" IN {
        type master;
        file "test.co.kr.zone";

};
zone "test.com" IN {
        type master;
        file "test.com.zone";
};

----------------------------------------------------------------------------------------------------------

/var/named/test.co.kr.zone 파일 내용입니다.

----------------------------------------test.co.kr.zone--------------------------------------------------

$TTL    86400
@       IN      SOA     ns.test.co.kr. root.test.co.kr. (
                                2006051402 ; Serial
                                10 ; Refresh
                                3600 ; Retry
                                604800 ; Expire
                                86400 ) ; Minimum
        IN      NS      ns.test.co.kr.

        IN      MX      10 mail.test.co.kr.

        IN      A       000.000.000.001
ns      IN      A       000.000.000.001
www     IN      A       000.000.000.001
*       IN      A       000.000.000.001
---------------------------------------------------------------------------------------------------------

/var/named/test.com.zone 파일 내용입니다

-------------------------------test.com.zone----------------------------------------------------------

$TTL    86400
@       IN      SOA     ns.test.co.kr. root.test.co.kr. (
                                2006062501 ; Serial
                                10 ; Refresh
                                3600 ; Retry
                                604800 ; Expire
                                86400 ) ; Minimum
        IN      NS      ns.test.co.kr.

        IN      MX      10 mail.test.com.

        IN      A       000.000.000.001
ns      IN      A       000.000.000.001
www     IN      A       000.000.000.001
*       IN      A       000.000.000.001

----------------------------------------------------------------------------------------------------------

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,074 명
  • 현재 강좌수 :  35,995 개
  • 현재 접속자 :  533 명