加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

挖掘超时选项不起作用

发布时间:2020-12-14 04:15:03 所属栏目:大数据 来源:网络整理
导读:当我尝试其中任何一个命令时,它们不会在5秒后停止: $dig +time=5 @hii.com hello.me -要么- $dig @hii.com hello.me +time=5 使用此选项的正确方法是什么? 解决方法 超时值是每次尝试,因此设置时间= 5将导致15秒延迟,因为尝试的默认值为3.如果设置tries =
当我尝试其中任何一个命令时,它们不会在5秒后停止:

$dig +time=5 @hii.com hello.me

-要么-

$dig @hii.com hello.me +time=5

使用此选项的正确方法是什么?

解决方法

超时值是每次尝试,因此设置时间= 5将导致15秒延迟,因为尝试的默认值为3.如果设置tries = 1,那么您的命令将在5秒内超时,例如

time dig +time=5  @hii.com hello.me

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5_7.1 <<>> +time=5 @hii.com hello.me
; (1 server found)
;; global options:  printcmd
;; connection timed out; no servers could be reached

real    0m15.017s
user    0m0.003s
sys     0m0.011s

或者try = 1

time dig +time=5 +tries=1 @hii.com hello.me

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5_7.1 <<>> +time=5 +tries=1 @hii.com hello.me
; (1 server found)
;; global options:  printcmd
;; connection timed out; no servers could be reached

real    0m5.015s
user    0m0.006s
sys     0m0.007s

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读