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

ns.xx.co.kr은 되는데 www나 없이는 접근이 안되네요

작성자 정보

  • 궁금이 작성
  • 작성일

컨텐츠 정보

본문

안녕하세요.
하루종일 끙끙대다가 올립니다.
Q&A도 찾아 보고 똑같이 했는데 안되네요....
원인을 모르겠습니다.

도메인인이 onenightstand.co.kr이고 아이피가 61.252.155.51이고
아래와 같이 nslookup 해보면 제대로 세팅된것 같은데..
http://ns.onenightstand.co.kr 이렇게는 접속이 되는데...
http://www.onenightstand.co.kr 나 http://onenightstand.co.kr 이렇게는 접속이 안됩니다.

nslookup 결과=================================================================
[root@localhost root]# nslookup ns.onenightstand.co.kr
Note:  nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead.  Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server:         61.252.155.51
Address:        61.252.155.51#53

Name:   ns.onenightstand.co.kr
Address: 61.252.155.51

named.conf==============================================================

zone "155.252.61.in-addr.arpa" IN {
        type master;
        file "onenightstand.rev";
        allow-update { none; };
};
                                                                                
zone "onenightstand.co.kr" IN {
        type master;
        file "onenightstand.zone";
        allow-update { none; };
};

onenightstand.zone 파일===========================================================
$TTL    86400
@       IN      SOA     ns.onenightstand.co.kr. root.onenightstand.co.kr.
(
        1997022700 ; Serial
        28800 ; Refresh
        14400 ; Retry
        3600000 ; Expire
        86400 ) ; Minimum
;
        IN      NS      ns.onenightstand.co.kr.
        IN      A       61.252.155.51
;
ns      IN      A       61.252.155.51
www     IN      A       61.252.155.51


onenightstand.rev 파일=============================================================
~
$TTL    86400
@       IN      SOA     ns.onenightstand.co.kr. root.onenightstand.co.kr.
(
        1997022700 ; Serial
        28800 ; Refresh
        14400 ; Retry
        3600000 ; Expire
        86400) ;MInimum
;
        IN      NS      ns.onenightstand.co.kr.
;
51      IN      PTR     www.onenightstand.co.kr.
51      IN      PTR     onenightstand.co.kr.


httpd.conf 파일===================================================================

<VirtualHost 61.252.155.51>
        ServerAdmin     webmaster@onenightstand.co.kr
        DocumentRoot    /usr/www/htdocs
        ServerName      onenightstand.co.kr
        ServerAlias     www.onenightstand.co.kr
        ErrorLog        logs/onenightstand.co.kr-error.log
        CustomLog       logs/onenightstand.co.kr-access_log common
</VirtualHost>

resolv.conf=====================================================================

search onenightstand.co.kr
nameserver 61.252.155.51
nameserver /

관련자료

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

공지사항


뉴스광장


  • 현재 회원수 :  60,037 명
  • 현재 강좌수 :  35,807 개
  • 현재 접속자 :  169 명