메뉴 건너뛰기

리눅스 관련 모음

본문시작

설치관련
2013.06.07 21:47

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

조회 수 24036 추천 수 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. error: wrong mysql library version or lib not found.

    Date2014.03.16 Category에러해결 By햇빛소년 Views16582
    Read More
  2. error on line at column Input is not proper UTF-8, indicate encoding !

    Date2013.12.26 Category에러해결 By햇빛소년 Views4630
    Read More
  3. eaccelerator.c:66:23: error: php_logos.h: 그런 파일이나 디렉터리가 없습니다.

    Date2014.02.28 Category에러해결 By햇빛소년 Views9609
    Read More
  4. dovecot 설치 후 squirrelmail 가동하면 /.imap/INBOX, group=12(mail)) failed: Operation not permitted

    Date2013.06.30 Category에러해결 By햇빛소년 Views19283
    Read More
  5. dnssec-keygen 사용법 및 구축과 검증

    Date2013.06.07 Category설치관련 By햇빛소년 Views24036
    Read More
  6. DCC로 안티스팸 기능 확장하기

    Date2011.03.18 By햇빛소년 Views51328
    Read More
  7. DCC관련 명령어 모음

    Date2012.06.02 By햇빛소년 Views43924
    Read More
  8. DCC+razor2+pyzor how to ---[ spamassassin -D <test 2>debug ]

    Date2012.05.31 Category설치관련 By햇빛소년 Views31628
    Read More
  9. crontab 설정

    Date2011.05.12 By햇빛소년 Views45049
    Read More
  10. cpanm

    Date2011.04.04 By햇빛소년 Views47599
    Read More
  11. cpan 으로 설치힌 perl 모듈의 검색과 삭제...

    Date2012.05.10 By햇빛소년 Views30042
    Read More
  12. convert: error while loading shared libraries: libMagick.so.10: cannot open

    Date2012.02.20 By햇빛소년 Views29870
    Read More
  13. configure: error: Unable to find libgd.(a|so) >= 2.1.0 anywhere under

    Date2014.03.02 Category에러해결 By햇빛소년 Views4547
    Read More
  14. configure: error: snmp.h not found. Check your SNMP installation.

    Date2015.12.01 Category에러해결 By햇빛소년 Views907
    Read More
  15. clamav.cf --> Clamav Multiple Score

    Date2013.07.07 Category설치관련 By햇빛소년 Views18141
    Read More
  16. ClamAV 0.97.4 버전으로 새로 컴파일 하여 업데이트 한후 에러발생 해결...

    Date2012.04.29 By햇빛소년 Views28721
    Read More
  17. chmod 파일 퍼미션의 다양한 조건들....

    Date2012.05.16 By햇빛소년 Views28507
    Read More
  18. chattr, lsattr

    Date2011.10.05 By햇빛소년 Views41615
    Read More
  19. CentOS7 firewall 사용시 spamd: could not create INET socket on 127.0.0.1:783:

    Date2014.11.04 Category에러해결 By햇빛소년 Views3748
    Read More
  20. CentOS-7 Network 설정에 관하여....

    Date2014.10.27 Category에러해결 By햇빛소년 Views7707
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 Next
/ 10