[root@performance-tools ~]# dnsperf --help DNS Performance Testing Tool Version 2.9.0
dnsperf: invalid option -- '-' Usage: dnsperf [-f family] [-m mode] [-s server_addr] [-p port] [-a local_addr] [-x local_port] [-d datafile] [-c clients] [-T threads] [-n maxruns] [-l timelimit] [-b buffer_size] [-t timeout] [-e] [-E code:value] [-D] [-y [alg:]name:secret] [-q num_queries] [-Q max_qps] [-S stats_interval] [-u] [-v] [-W] [-h] [-H] [-O] -f address family of DNS transport, inet or inet6 (default: any) -m set transport mode: udp, tcp, dot or doh (default: udp) -s the server to query (default: 127.0.0.1) -p the port on which to query the server (default: udp/tcp 53, DoT 853 or DoH 443) -a the local address from which to send queries -x the local port from which to send queries (default: 0) -d the input data file (default: stdin) -c the number of clients to act as -T the number of threads to run -n run through input at most N times -l run for at most this many seconds -b socket send/receive buffer size in kilobytes -t the timeout for query completion in seconds (default: 5) -e enable EDNS 0 -E send EDNS option -D set the DNSSEC OK bit (implies EDNS) -y the TSIG algorithm, name and secret (base64) -q the maximum number of queries outstanding (default: 100) -Q limit the number of queries per second -S print qps statistics every N seconds -u send dynamic updates instead of queries -v verbose: report each query and additional information to stdout -W log warnings and errors to stdout instead of stderr -h print this help -H print long options help -O set long options: <name>=<value>
这里对自己使用过的参数做个简单的介绍
-d:存有测试的域名及其类型的文件实例如下。
1 2 3 4 5 6 7 8 9
191.zxzmcode.cn A 192.zxzmcode.cn A 193.zxzmcode.cn A 194.zxzmcode.cn A 195.zxzmcode.cn A 196.zxzmcode.cn A 197.zxzmcode.cn A 198.zxzmcode.cn A 199.zxzmcode.cn A