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

dns 서버 설정

작성자 정보

  • 홍띵 작성
  • 작성일

컨텐츠 정보

본문

해당문서의 test.com 도메인은 예를 들어 설명하였습니다

redhat 9

bind-9.2.1-16.i386.rpm
bind-utils-9.2.1-16.i386.rpm
caching-nameserver-7.2-7.noarch.rpm

설치하였습니다.

그후  /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; };
};


include "/etc/rndc.key";


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 "test.com" IN {
type master;
file "test.zone";
};

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

/var/named/test.zone  파일생성  (TAB:공간 을 줌)

----------------------------------------------------------------------
$TTL 1D
@ IN SOA ns.test.com. root.test.com. (
2000112400 ; Serial
28800 ; Refresh(8hr)
14400 ; Retry(4hr)
3600000 ; Expire(6weeks)
86400 ) ; Minimum
IN NS ns.test.com.
IN A 211.xxx.xxx.xxx
ns IN A 211.xxx.xxx.xxx
www IN A 211.xxx.xxx.xxx
-------------------------------------------------------------

이후

/etc/rc.d/init.d/named start
/etc/rc.d/init.d/network restart

하였습니다..

그리고 마지막으로

nslookup test.com server 211.xxx.xxx.xxx

하였으나

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.
;; connection timed out; no servers could be reached

보다시피 저렇게 나왔습니다.
혹시나 해서

/etc/rc.d/init.d/named restart  해보았습니다

named 를 정지함: rndc: decode base64 secret: bad base64 encoding
                                                           [실패]

위와 같이 나왔습니다.

참고로   ns.test.com 은 호스트 등록 된 상태입니다.
그래서 ping ns.test.com   하면    211.xxx.xxx.xxx 으로 ping 이 갑니다.
그러나 위의 test.com  으로 ping 을 하면   ping 이 가지 않습니다.
어디를 어떻게 손대야 할지 막막합니다.

힌트 또는 답좀 주세요 ;;;;

관련자료

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

공지사항


뉴스광장


  • 현재 회원수 :  60,043 명
  • 현재 강좌수 :  35,853 개
  • 현재 접속자 :  125 명