메뉴 건너뛰기

리눅스 관련 모음

본문시작

설치관련
2013.06.07 21:47

dnssec-keygen 사용법 및 구축과 검증

조회 수 24035 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

국산 통나무 수공예 남원제기, 남원목기

자료가 도움이 되셨다면
혼수용품제수용품 필요시
남원제기 공식 홈페이지 http://남원제기.kr
남원목기 공식 홈페이지 http://otchil.kr
에서 구매 해 주세요
정성껏 모시겠습니다.
 

[bind] DNSSEC 구축 방법 및 검증

anti1346.egloos.com/5174378

DNSSEC 구축 방법 및 검증

1.
도메인 설정 및 존파일 작성

[root@LAMP01 named]# tail /etc/named.conf

zone "sangchul.kr" { type master; file "sangchul.kr-zone"; allow-update { none; }; };

 

[root@LAMP01 named]# cat sangchul.kr-zone

$TTL 600

@             IN SOA       ns.sangchul.kr.  dns.netpiacorp.com.  (

                           2013022701      ; Serial

                           2H              ; Refresh

                           1H              ; Retry

                           1W              ; Expire

                           1H )            ; Minimum

 

                     IN NS              ns1.sangchul.kr.

                     IN NS              ns2.sangchul.kr.

 

                     IN A                211.234.242.174

www               IN CNAME        @

*                    IN A                211.234.242.174

 

ngb                IN A                127.0.0.1

ns1                 IN A            127.0.0.1

ns2                 IN A            127.0.0.1

 

질의 테스트

[root@LAMP01 named]# dig @127.0.0.1 ngb.sangchul.kr +short

127.0.0.1

 

2.  서명키 생성

sangchul.kr 존 서명키(ZSK) 생성(1024 비트 이상 사용 권고)

[root@LAMP01 named]# dnssec-keygen -a NSEC3RSASHA1 -r /dev/urandom -b 1024 -n ZONE sangchul.kr.

Generating key pair...................................++++++ ...............++++++

Ksangchul.kr.+007+18434

 

sangchul.kr 키 서명키(KSK) 생성(2048 비트 이상 사용 권고)

[root@LAMP01 named]# dnssec-keygen -a NSEC3RSASHA1 -r /dev/urandom -b 2048 -n ZONE -f KSK sangchul.kr.

Generating key pair...............................+++ ................+++

Ksangchul.kr.+007+53403

 

[root@LAMP01 named]# ls -l Ksangchul.kr.*

-rw-r--r-- 1 root root  380  3 18 17:54 Ksangchul.kr.+007+18434.key

-rw------- 1 root root 1015  3 18 17:54 Ksangchul.kr.+007+18434.private

-rw-r--r-- 1 root root  554  3 18 17:54 Ksangchul.kr.+007+53403.key

-rw------- 1 root root 1779  3 18 17:54 Ksangchul.kr.+007+53403.private

 

3. Public Key 존 반영

[root@LAMP01 named]# vi sangchul.kr-zone

$TTL 600

@             IN SOA       ns.sangchul.kr.  dns.netpiacorp.com.  (

                           2013022701      ; Serial

                           2H              ; Refresh

                           1H              ; Retry

                           1W              ; Expire

                           1H )            ; Minimum

 

                     IN NS              ns1.sangchul.kr.

                     IN NS              ns2.sangchul.kr.

 

                     IN A                211.234.242.174

www               IN CNAME        @

*                    IN A                211.234.242.174

 

ngb                IN A                127.0.0.1

ns1                 IN A            127.0.0.1

ns2                 IN A            127.0.0.1

 

$INCLUDE Ksangchul.kr.+007+18434.key

$INCLUDE Ksangchul.kr.+007+53403.key

 

4. 존 서명

[root@LAMP01 named]# dnssec-signzone -S -3 96e920 -o sangchul.kr. sangchul.kr-zone

Verifying the zone using the following algorithms: NSEC3RSASHA1.

Zone signing complete:

Algorithm: NSEC3RSASHA1: KSKs: 1 active, 0 stand-by, 0 revoked

                         ZSKs: 1 active, 0 stand-by, 0 revoked

sangchul.kr-zone.signed

 

5. 네임서버에 존 반영

options {

        listen-on port 53 { any; };

//      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";

        allow-query     { any; };

        recursion yes;

 

        dnssec-enable yes;

        dnssec-validation yes;

        dnssec-lookaside auto;

 

        /- Path to ISC DLV key *-

        bindkeys-file "/etc/named.iscdlv.key";

};

 

zone "sangchul.kr" { type master; file "sangchul.kr-zone.signed"; key-directory "key"; auto-dnssec maintain; allow-update { none; }; };

 

6. 서명검증 상태 점검방법

[root@LAMP01 named]# dig @127.0.0.1 ngb.sangchul.kr A +dnssec +multiline

 

; <<>> DiG 9.7.0-P2-RedHat-9.7.0-10.P2.el5_8.5 <<>> @127.0.0.1 ngb.sangchul.kr A +dnssec +multiline

; (1 server found)

;; global options: +cmd

;; Got answer:

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7567

;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 3, ADDITIONAL: 5

 

;; OPT PSEUDOSECTION:

; EDNS: version: 0, flags: do; udp: 4096

;; QUESTION SECTION:

;ngb.sangchul.kr. IN A

 

;; ANSWER SECTION:

ngb.sangchul.kr.  600 IN A 127.0.0.1

ngb.sangchul.kr.  600 IN RRSIG A 7 3 600 20130417075639 (

                                          20130318075639 18434 sangchul.kr.

                                          JSfTay1PS9gXHc3YRIPnTTevFwrUXxtv3EFmiwtaaNyV

                                          cZgTf2oIQOMnEsNzbOFHAfoZi+MiLDmg/ddNtp5qDrmq

                                          x+DE77O7ty5eNL5VR/UROjD40IIe6v46opcVotpkIddJ

                                          gP+R2eC/OLleFDw0izWJEFgUCzwG/MDqdYdInx4= )

 

;; AUTHORITY SECTION:

sangchul.kr.                  600 IN NS ns1.sangchul.kr.

sangchul.kr.                  600 IN NS ns2.sangchul.kr.

sangchul.kr.                  600 IN RRSIG NS 7 2 600 20130417075639 (

                                          20130318075639 18434 sangchul.kr.

                                          f3GNqt3IajADVKyPK7vkyAvI36StExpcV0XHL6gQ4pn0

                                          vG5NJ7EpR/lyGZAYomhzQzENmF9OA/KuVNFwwOxnVKT7

                                          NM6Ww7+NfIb6c5xCpRtVbh7NLYUY+Eyzhy06ZxJmHxkV

                                          k7AG52yrWGPptXpCz3HlkytbonjJjdEGs5ty2iQ= )

 

;; ADDITIONAL SECTION:

ns1.sangchul.kr.  600 IN A 127.0.0.1

ns2.sangchul.kr.  600 IN A 127.0.0.1

ns1.sangchul.kr.  600 IN RRSIG A 7 3 600 20130417075639 (

                                          20130318075639 18434 sangchul.kr.

                                          PI/QEb/mIAEuivvcyUr01V2HnEKMpdN27DZMrVD/dVuU

                                          E1vuELnIcMESxmakQyrAD0Q8bi8v97EdV/HLhnV1M7lj

                                          0uSAO11RC2tHW/aaI3v8fgdHFXAynwhqr5wBRqTgL58f

                                          wyh2967lPWXtXoclIhTdIwOT/GzD3clscrXFFzs= )

ns2.sangchul.kr.  600 IN RRSIG A 7 3 600 20130417075639 (

                                          20130318075639 18434 sangchul.kr.

                                          JKBNfYIRFZcitbmXuOwYxNGR+Z8K4Dl6V8haFzyqWtZM

                                          w+9pFjumpcgWE2v1pehRud87KZr8lr7DrSgIUa3uLCj7

                                          cuwndDVZ6ajzDqWymSsdl4HdqIIFErnPd0GlSUTjxzgK

                                          zIJDcYQDC5k8jLJrm5Ab3KRrzuMxeiqjgr4qBRU= )

 

;; Query time: 1 msec

;; SERVER: 127.0.0.1#53(127.0.0.1)

;; WHEN: Mon Mar 18 18:09:06 2013

;; MSG SIZE  rcvd: 812

   

  1. dnssec-keygen 사용법 및 구축과 검증

    Date2013.06.07 Category설치관련 By햇빛소년 Views24035
    Read More
  2. TIFF 설피시 /usr/local/include/jmorecfg.h:263:16: error: expected identifier before numeric constant 에러

    Date2013.06.04 Category에러해결 By햇빛소년 Views17422
    Read More
  3. rndc-confgen — rndc key generation tool

    Date2013.05.31 Category설치관련 By햇빛소년 Views17372
    Read More
  4. ZendGuardLoader.so: undefined symbol: compiler_globals

    Date2013.01.19 Category에러해결 By햇빛소년 Views25863
    Read More
  5. Luajit 다운로드 및 설치

    Date2013.01.19 Category설치관련 By햇빛소년 Views22840
    Read More
  6. pcre최신버전 소스설치 후 modsecurity-apache 컴파일시 에러

    Date2013.01.19 Category에러해결 By햇빛소년 Views76591
    Read More
  7. apache2.x.x 컴파일 에러 해결 - /usr/local/lib/liblua.a: could not read symbols: Bad value

    Date2013.01.19 Category에러해결 By햇빛소년 Views0
    Read More
  8. .htaccess 이용 스팸 IP 차단

    Date2013.01.17 Category설치관련 By햇빛소년 Views25199
    Read More
  9. modcurity 에러메세지

    Date2013.01.17 Category에러해결 By햇빛소년 Views0
    Read More
  10. PHP CodeSniffer 코딩검사

    Date2013.01.14 Category설치관련 By햇빛소년 Views0
    Read More
  11. PHP5.3 가동후 에러 메세지

    Date2013.01.13 Category에러해결 By햇빛소년 Views0
    Read More
  12. unable to include potential exec "include/top.html" in parsed file 에러 해결!!!

    Date2013.01.11 Category에러해결 By햇빛소년 Views30286
    Read More
  13. Apache-2.4.X 에서 mod_evasive-1.10.1 설치시 나오는 에러 해결...

    Date2013.01.11 Category에러해결 By햇빛소년 Views0
    Read More
  14. 특정 디렉토리에 있는 파일 또는 디렉토리의 퍼미션 변경

    Date2013.01.11 Category에러해결 By햇빛소년 Views24938
    Read More
  15. ZendGuardLoader 설치 에러

    Date2013.01.10 Category에러해결 By햇빛소년 Views24646
    Read More
  16. ModSecurity-Apache 설치, Lua, readline

    Date2013.01.07 By햇빛소년 Views51532
    Read More
  17. php-5.4.10 make시 gd관련 에러...

    Date2013.01.06 By햇빛소년 Views20515
    Read More
  18. Sendmail 스패머 IP 차단 쉘스크립트 v2

    Date2012.12.06 By햇빛소년 Views20107
    Read More
  19. 센드메일(sendmail) RBL 이용하여 해외, 국내 스팸 차단하는 법.

    Date2012.12.06 By햇빛소년 Views21173
    Read More
  20. mysql 문자열치환

    Date2012.10.11 By햇빛소년 Views23347
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 Next
/ 10