centos5에서 bind 설정하기 > 리눅스 Tip

본문 바로가기
 

centos5에서 bind 설정하기

페이지 정보

작성자 no_profile 차동박 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 9,983회 작성일 08-06-30 09:36

본문

centos5에서 bind 설정하기

Operation System is the CentOS5.
A IP of this local machine is 111.222.333.444 (i.e, this IP is only example)
A Domain Name is skorea.com

Step1. install bind and cashing-nameserver package using with YUM

[root@localhost]# yum install "bind*"
[root@localhost]# yum install "*name*"

Step2. configure name.conf file

[root@localhost]# vi /etc/named.cashing-nameserver.conf
options {
       listen-on port 53 { 127.0.0.1; };
       listen-on port 53 { 111.222.333.444; }; // local machine IP
       listen-on-v6 port 53 { ::1; };
       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";
       query-source    port 53;
       query-source-v6 port 53;
       allow-query     { any; }; // modify "localhost" to "any "
};

logging {
       channel default_debug {
               file "data/named.run";
               severity dynamic;
       };
};
view localhost_resolver {
       // match-clients      { localhost; };  // add comment this line from original source
       // match-destinations { localhost; };  // add comment this line from original source
       recursion yes;
       include "/etc/named.rfc1912.zones";
};


Step3. configure rfc1912.zones

[root@localhost]# vi /etc/named.rfc1912.zones

zone "skorea.com" IN {           //domain name
       type master;
       file "skorea.com.zone";    //zone file of domain
       allow-update { none; };
};

zone "333.222.111.in-addr.arpa" {    //reversal IP
       type master;
       file "skorea.come.rev";
       allow-update { none; };
};


Step4. create ZONE file

[root@localhost]# vi /var/named/chroot/var/named/skorea.com.zone
$TTL    86400
@       IN      SOA     ns.skorea.com. root.skorea.com.  (
               2007081411 ; Serial
               28800      ; Refresh
               14400      ; Retry
               3600000    ; Expire
               86400 )    ; Minimum
               IN      NS      ns.skorea.com.
               IN      MX  0   mail.skorea.com.
;
localhost       IN      A       127.0.0.1
@                 IN      A       111.222.333.444
www            IN      A       111.222.333.444
mail              IN      A       111.222.333.444
*                  IN      A       111.222.333.444

[root@localhost]ln -s /var/named/chroot/var/named/skorea.com.zone /var/naemd/skorea.com.zone

Step5. create REVERSION file

[root@localhost]# vi /var/named/chroot/var/named/skorea.come.rev

$TTL    86400
@       IN      SOA     ns.skorea.com. root.skorea.com.  (
               2007081412 ; Serial
               28800      ; Refresh
               14400      ; Retry
               3600000    ; Expire
               86400 )    ; Minimum
               IN      NS      ns.skorea.come.
;
444            IN      PTR     ns.skorea.com.
444            IN      PTR     www.skorea.com.
444            IN      PTR     skorea.come.

[root@localhost]ln -s /var/named/chroot/var/named/skorea.com.rev /var/naemd/skorea.com.rev

Step6. start named service

[root@localhost]# service named start

Step7. nslookup

[root@localhost]# nslookup skorea.come

댓글목록

등록된 댓글이 없습니다.

Total 138건 6 페이지
리눅스 Tip 목록
번호 제목 글쓴이 조회 날짜
48 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13507 12-24
47 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12600 05-22
46 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12444 07-22
45 no_profile 차동박 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12430 06-18
44 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12060 10-18
43 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12016 01-30
42 no_profile 차동박 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 11967 05-13
41 no_profile 차동박 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 11963 06-28
40 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11892 04-04
39 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11534 10-16
38 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11422 05-10
37 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11118 04-05
36 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11086 06-25
35 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 10999 04-06
34 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 10906 05-23
33 no_profile 차동박 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10587 06-09
열람중 no_profile 차동박 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9984 06-30
31 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 9967 10-14
게시물 검색