# ./queryperf --help
-D set the DNSSEC OK bit (implies EDNS)
BIND 9.7.0 の queryperf を使用。
-D オプションをつけた結果
[root@arizona queryperf]# cat querylist.txt
org SOA
[root@arizona queryperf]# ./queryperf -s 127.1 -d querylist.txt -D
DNS Query Performance Testing Tool
Version: $Id: queryperf.c,v 1.12 2007/09/05 07:36:04 marka Exp $
[Status] Processing input data
[Status] Sending queries (beginning with 127.0.0.1)
[Status] Testing complete
Statistics:
Parse input file: once
Ended due to: reaching end of file
Queries sent: 1 queries
Queries completed: 1 queries
Queries lost: 0 queries
Queries delayed(?): 0 queries
RTT max: 0.000095 sec
RTT min: 0.000095 sec
RTT average: 0.000095 sec
RTT std deviation: 0.000045 sec
RTT out of range: 0 queries
Percentage completed: 100.00%
Percentage lost: 0.00%
Started at: Wed Mar 10 01:26:09 2010
Finished at: Wed Mar 10 01:26:09 2010
Ran for: 0.000135 seconds
Queries per second: 7407.407407 qps
[root@arizona queryperf]#
DO flag がついてる。
Queries
org: type SOA, class IN
Name: org
Type: SOA (Start of zone of authority)
Class: IN (0x0001)
Additional records
Name:
Type: OPT (EDNS0 option)
UDP payload size: 4096
Higher bits in extended RCODE: 0x0
EDNS0 version: 0
Z: 0x8000
Bit 0 (DO bit): 1 (Accepts DNSSEC security RRs) <- これ
Bits 1-15: 0x0 (reserved)
Data length: 0
queryperf っていろいろオプションあるんだなー。
-l で時間の指定、-T でターゲットのqps も指定できるんだー。
-l specifies how a limit for how long to run tests in seconds (no default)
-T specify the target qps (default: 0=unspecified)
ちなみに、-T は大文字じゃなくて、小文字 ( -t ) だとテストがはしったなー。
-T だと、Invalid qps って出て走らないなー。
-T だとだめー。
[root@arizona queryperf]# ./queryperf -s 127.1 -d querylist.txt -D -T 100 -l 10
DNS Query Performance Testing Tool
Version: $Id: queryperf.c,v 1.12 2007/09/05 07:36:04 marka Exp $
Invalid target qps: (null)
-t だとうまくいく。
[root@arizona queryperf]# ./queryperf -s 127.1 -d querylist.txt -D -t 100 -l 10
DNS Query Performance Testing Tool
Version: $Id: queryperf.c,v 1.12 2007/09/05 07:36:04 marka Exp $
[Status] Processing input data
[Status] Sending queries (beginning with 127.0.0.1)
[Status] Testing complete
Statistics:
Parse input file: multiple times
Run time limit: 10 seconds
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.