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

서버를 발견할수 없다고 하는데.. 도와주십시요 ㅠㅠ

작성자 정보

  • 이종창 작성
  • 작성일

컨텐츠 정보

본문

Server IP : xxx.229.xxx.250 <--해킹 보안상 이렇게 표기를 할 수 밖에 없습니다. ㅠㅠ

DNS : xxx.229.xxx.5              xxx.229.xxx.8 두개가 있습니다.

 

----------------------/var/log/message중에 named관련 부분입니다.

Mar 21 22:54:14 linesketch named[3159]: starting BIND 9.3.4-P1 -u named -c /etc/
named.caching-nameserver.conf -t /var/named/chroot
Mar 21 22:54:14 linesketch named[3159]: found 1 CPU, using 1 worker thread
Mar 21 22:54:14 linesketch named[3159]: loading configuration from '/etc/named.c
aching-nameserver.conf'
Mar 21 22:54:14 linesketch named[3159]: listening on IPv4 interface lo, 127.0.0.
1#53
Mar 21 22:54:14 linesketch named[3159]: listening on IPv4 interface eth0, xxx.22
9.xxx.250#53
Mar 21 22:54:14 linesketch named[3159]: command channel listening on 127.0.0.1#9
53
Mar 21 22:54:14 linesketch named[3159]: zone xxx.229.xxx.in-add.arpa/IN/localhos
t_resolver: loaded serial 2008032013
Mar 21 22:54:14 linesketch named[3159]: zone 0.0.127.in-addr.arpa/IN/localhost_r
esolver: loaded serial 2008032013
Mar 21 22:54:14 linesketch named[3159]: zone goteachkorea.com/IN/localhost_resol
ver: loaded serial 2008032013
Mar 21 22:54:14 linesketch named[3159]: zone linesketch.co.kr/IN/localhost_resol
ver: loaded serial 2008032013
Mar 21 22:54:14 linesketch named[3159]: zone localhost/IN/localhost_resolver: lo
aded serial 2008032013
Mar 21 22:54:14 linesketch named[3159]: running

----------------------------------/etc/named.caching-nameserver.conf

//
// named.caching-nameserver.conf
//
options {
        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";
//      pid-file        "/var/run/named.pid";
        query-source    port 53;
        query-source-v6 port 53;
        allow-query     { localhost; };
};

controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};

view localhost_resolver {
        match-clients      { localhost; };
        match-destinations { localhost; };
        recursion yes;
        include "/etc/rndc.key";
        include "/etc/named.rfc1912.zones";
};

----------------------------------/etc/named.rfc1912.zones

// named.rfc1912.zones:         2008/03/21 13:00:00
//
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 "xxx.229.xxx.in-add.arpa"IN {
        type master;
        file "xxx.229.rev";
        allow-update { none; };
};

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

zone "goteachkorea.com"IN {
        type master;
        file "goteachkorea.com.zone";
        allow-update { none; };
        allow-query { none; };
        allow-transfer { none; };
};

----------------------------------/var/named/xxx.229.rev

$TTL 86400
@       IN      SOA     ns.linesketch.co.kr. admin.linesketch.co.kr. (
                2008032013 ; 시리얼값 (년월일시간)으로 대부분 셋팅
                3H      ; 2차 네임서버가 1차 네임서버에 접속하는 시간
                15M     ; 접속 실패시 다시 시도할 시간 간격
                1W      ; 네임서버에서 데이터가 없다면 1주 이후에 지워진다
                10M )   ; 위에서 설정한 TTL 값과 같은 의미;
        IN      NS      ns.linesketch.co.kr.
250     IN      PTR     ns.linesketch.co.kr.
250     IN      PTR    
www.linesketch.co.kr.
250     IN      PTR     mail.linesketch.co.kr.
250     IN      PTR    
ftp.linesketch.co.kr.

250     IN      PTR     ns.goteachkorea.com.
250     IN      PTR    
www.goteachkorea.com.
250     IN      PTR     mail.goteachkorea.com.
250     IN      PTR    
ftp.goteachkorea.com.

----------------------------------linesketch.co.kr.zone 파일

[root@linesketch ~]# vim /var/named/linesketch.co.kr.zone

$TTL 86400
@       IN      SOA     ns.linesketch.co.kr. admin.linesketch.co.kr. (
                2008032013 ; 시리얼값 (년월일시간)으로 대부분 셋팅
                3H      ; 2차 네임서버가 1차 네임서버에 접속하는 시간
                15M     ; 접속 실패시 다시 시도할 시간 간격
                1W      ; 네임서버에서 데이터가 없다면 1주 이후에 지워진다
                10M )   ; 위에서 설정한 TTL 값과 같은 의미;

; Name Server
        IN      NS      ns.linesketch.co.kr.
        IN      MX      10 linesketch.co.kr.

; Host Name
ns.linesketch.co.kr.    IN      A       xxx.229.xxx.250
linesketch.co.kr.       IN      A       xxx.229.xxx.250
www     IN      A       xxx.229.xxx.250
mail    IN      A       xxx.229.xxx.250
ftp     IN      A       xxx.229.xxx.250

linesketch.co.kr.       IN      TXT     "v=spf1 ip4:xxx.229.xxx.250 ~all"

----------------------------------/var/named/goteachkorea.com.zone

$TTL 86400
@       IN      SOA     ns.goteachkorea.com. admin.goteachkorea.com. (
                2008032013 ; 시리얼값 (년월일시간)으로 대부분 셋팅
                3H      ; 2차 네임서버가 1차 네임서버에 접속하는 시간
                15M     ; 접속 실패시 다시 시도할 시간 간격
                1W      ; 네임서버에서 데이터가 없다면 1주 이후에 지워진다
                10M )   ; 위에서 설정한 TTL 값과 같은 의미;

; Name Server
        IN      NS      ns.goteachkorea.com.
        IN      MX      10 goteachkorea.com.

; Host Name
ns.goteachkorea.com.    IN      A       xxx.229.xxx.250
goteachkorea.com.       IN      A       xxx.229.xxx.250
www     IN      A       xxx.229.xxx.250
mail    IN      A       xxx.229.xxx.250
ftp     IN      A       xxx.229.xxx.250

----------------------------------/etc/hosts

127.0.0.1               localhost.localdomain localhost
xxx.229.xxx.250         linesketch.co.kr linesketch

----------------------------------/etc/resolv.conf

search ns.linesketch.co.kr
nameserver xxx.229.xxx.5
nameserver xxx.229.xxx.8

----------------------------------/etc/sysconfig/network

NETWORKING=yes
NETWORKING_IPV4=yes
NETWORKING_IPV6=no
HOSTNAME=linesketch.co.kr
GATEWAY=xxx.229.xxx.1

============================================

[root@linesketch ~]# nslookup linesketch.co.kr
;; Got SERVFAIL reply from xxx.229.xxx.5, trying next server
Server:         xxx.229.xxx.8
Address:        xxx.229.xxx.8#53

** server can't find linesketch.co.kr: SERVFAIL

[root@linesketch ~]# nslookup goteachkorea.com
;; Got SERVFAIL reply from xxx.229.xxx.5, trying next server
Server:         xxx.229.xxx.8
Address:        xxx.229.xxx.8#53

** server can't find goteachkorea.com: SERVFAIL

=============================================================

http://www.serverchk.com에서 도메인을 체크해본 결과,

Server NS Record 설정확인

ns.linesketch.co.kr.네임서버 NS 설정

<경고> 상위서버(Gtld서버, KR서버 등)에 설정된 네임서버가 실제서버의 zone설정된 네임서버보다 많음
<수정을 요함> 아래의 서버를 zone에 추가로 등록해야 한다
  ns.linesketch.co.kr.:xxx.229.xxx.250

네임서버IP설정 확인

1) <정상> 네임서버의 IP가 정상적으로 설정되어있습니다.
2) <정상> 모든 네임서버의 IP블록이 다른 C-Class(네트워크)상에 있습니다.

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

몇일째 이 문제를 해결을 못하고 있습니다......

부디 고수님들중에 잘 아시는 분이 있으시면 속 시원한 답을 쫌 부탁드려 봅니다...

가슴 한 구석이 딱~~~~~ 막힌듯이..... 이것만 처다보고 있으면 머리까지 지끈 합니다.....

정말정말 부탁드려 봅니다...... ㅠㅠ

관련자료

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

공지사항


뉴스광장


  • 현재 회원수 :  60,041 명
  • 현재 강좌수 :  35,855 개
  • 현재 접속자 :  112 명