>> Delete Reply from No. 0 article
No. RE: RE: RE: [질문] 네임서버 설정 방법두 좀?

등록 2002-05-15 20:20:00 By localhost     조회 1
이름 이상호    

		/etc/named.conf 파일안에
 zone "abc.co.kr"{
    type master;
    file "abc.co.kr";
};
zone "def.co.kr"{
    type master;
    file "def.co.kr";
};
 이렇게 도메인이름에 맞게 넣어주시고
 /var/named/0.0.127 파일
@       IN      SOA     ns.abc.co.kr. webmaster.abc.co.kr.  (
                                      2001020005 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
              IN      NS      ns.abc.co.kr.
;
 /var/named/abc.co.kr 파일
@       IN      SOA     ns.abc.co.kr. webmaster.abc.co.kr.  (
                                      2001020005 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
              IN      NS      ns.abc.co.kr.
              IN      MX 10   mail.abc.co.kr.
;
locahost      IN      A       127.0.0.1
ns            IN      A       xxx.xxx.xxx.xxx
www           IN      A       xxx.xxx.xxx.xxx
mail          IN      A       xxx.xxx.xxx.xxx
 /var/named/def.co.kr 파일
@       IN      SOA     ns.def.co.kr. webmaster.def.co.kr.  (
                                      2001020005 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
              IN      NS      ns.def.co.kr.
              IN      MX 10   mail.def.co.kr.
;
locahost      IN      A       127.0.0.1
ns            IN      A       xxx.xxx.xxx.xxx
www           IN      A       xxx.xxx.xxx.xxx
mail          IN      A       xxx.xxx.xxx.xxx
 xxx.xxx.xxx.xxx는 할당받은 아이피입니다.
 할당받은 아이피가 192.168.1.99 이라고 가정
/var/named/1.168.192 (파일명이 아이피 c클래스까지 번호가 뒤집힙니다.)
@       IN      SOA     ns.abc.co.kr. webmaster.abc.co.kr.  (
                                      2001020005 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
              IN      NS      ns.abc.co.kr.
;
99       IN      PTR     ns.abc.co.kr. (여기에서 99는 아이피 끝자리 주소입니다.)
99       IN      PTR     www.abc.co.kr. 99       IN      PTR     mail.abc.co.kr.
99       IN      PTR     ns.def.co.kr.
99       IN      PTR     www.def.co.kr. 99       IN      PTR     mail.def.co.kr.
 여기까지입니다.
다 작성후에
/etc/rc.d/init.d/named restart
[관리자] 패스워드를 입력 하십시오. 답장이 존재하면 함께 삭제됩니다.[ 목록 | 이전 ]
패스워드:    

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved