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

DNS세팅했는데 외부에서는 작동을 안해요!

작성자 정보

  • 김장락 작성
  • 작성일

컨텐츠 정보

본문

Red Hot Linux 7.2 쓰고

BIND 8.1을 사용하고 있습니다. 이글은 읽어보시고 많이 많이 도와주세요!

IP를 임의로 변경하였습니다!

200.200.200.200이라고 하고 적었습니다!

그리고 ns.hyojung.com 네임서버를 세팅했습니다!

틀린부분이 있으면 지적해주세요!

먼저 /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
//
controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
        type hint;
        file "named.ca";
};

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 "200.200.200.in-addr.arpa"{
      type master;
      file "hyojung.com.rev";
      allow-update { none;};
};


zone "hyojung.com"{
      type master;
      file "hyojung.com.zone";
      allow-update { none;};
};

include "/etc/rndc.key";

두번째로 /var/named/hyojung.com.rev 설정부분

 $TTL 86400
$ORIGIN hyojung.com.
@ IN SOA ns.hyojung.com. root.ns.hyojung.com. (
         1997022700    ; Serial
         28800         ; Refresh
         14400         ; Retry
         3600000       ; Expire
         86400 )       ; Minimum

 IN NS ns.hyojung.com.
 IN NS localhost.

200 IN PTR ns.hyojung.com.
200 IN PTR localhost.

 

세번째로 /var/named/hyojung.com.zone

 $TTL 86400
@ IN SOA ns.hyojung.com. root.ns.hyojung.com. (
         3           ; Serial
         28800       ; Refresh
         7200        ; Retry
         604800      ; Expire
         86400       ; ttl
         )

 IN NS  ns.hyojung.com.
 IN NS  localhost.
 IN A   200.200.200.200
 IN MX  10 hyojung.com.

localhost. IN A 127.0.0.1
           IN A 200.200.200.200
 ns         IN A 200.200.200.200
 www        IN A 200.200.200.200
 

 

그리고 /etc/hosts

 # Do not remove the following line, or various programs
# that require network functionality will fail.
200.200.200.200                 ns.hyojung.com ns

 

이렇게 새팅을하고 나서 가비아 에서  ns.hyojung.com 네임서버를 아이피 등록했는데도

전혀 접속이 안되네요! nslookup 을하면 다른 도메인이 찾아지지가 않아요! 학교에서

쓰서버인데 웹서버를 구축하려구 네임서를 세팅하고 나서 한서버에 네임서버 웹서를

구축할려구 하는데 잘안되네요! 혹시 학교의 방화벽때문에 네임서버가 갱신을

못하는 것인가요? 고수님들 빨리좀 도와주세요! 부탁합니다!

관련자료

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

공지사항


뉴스광장


  • 현재 회원수 :  60,362 명
  • 현재 강좌수 :  37,019 개
  • 현재 접속자 :  306 명