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

DNS 세팅이 맞는지 확인 부탁드립니다

작성자 정보

  • 뭐가문제지 작성
  • 작성일

컨텐츠 정보

본문

DNS 공부를 하면서 직접 한번 세팅을 해봤는데 안되어서 글을 올립니다

보안상 IP와 도메인은 숨기겠습니다

아래는 도메인 및 서버 정보입니다

도메인 : ujjaji.com

OS : Redhat9 (커널2.4.20)

BIND 9.2.4

도메인 구입한곳에는 ns.ujjaji.com 으로 네임서버를 등록했습니다

 

아래는 /etc/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 "ujjaji.com" IN {
 type master;
 file "ujjaji.com.zone";
 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";

 

아래는 /var/named/ujjaji.com.zone 의 내용입니다


$TTL 86 400
@    IN    SOA    ujjaji.com.    root.ujjaji.com.    (
                           2005071213 ;serial
                          10800  ;refresh,seconds
                          3600  ;retry,seconds
                          432000  ;expire,seconds
                         86400 ) ;minimum,seconds

                         IN    NS    ns.ujjaji.com.

                         IN A  xxx.xxx.xxx.xxx

                    ns  IN A  xxx.xxx.xxx.xxx

               www  IN A  xxx.xxx.xxx.xxx

 

이렇게 설정하고 /etc/rc.d/init.d/named restart 했습니다

근데 제대로 동작하지 않는거 같네요

외부에서 ping을 하면 ns.ujjaji.com 은 잘 가는데 ujjaji.com 은 안가요

어떤부분이 잘못인지 좀 봐주시길 부탁드립니다 ㅜ ㅜ

관련자료

댓글 1

서태호님의 댓글

  • 서태호
  • 작성일
설정은 맞는거 같습니다.

          IN A  xxx.xxx.xxx.xxx  부분이 서버  ujjaji.com  입니다.
맞는지 확인하시고 .


Zone File에 아래와 같이 추가하셔도 됩니다.
ujjaji.com.      IN A  xxx.xxx.xxx.xxx

수고하세요.

dns전문가 사이트 운영자 : http://cafe.naver.com/dnspro.cafe

공지사항


뉴스광장


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