dns查看命令的方法讲解 dns怎么查看命令( 二 )

使用指定的域名服务器地址查询
[email protected]:~$ dog google.com MX @1.1.1.1MX google.com. 6m23s30 "alt2.aspmx.l.google.com."MX google.com. 6m23s40 "alt3.aspmx.l.google.com."MX google.com. 6m23s10 "aspmx.l.google.com."MX google.com. 6m23s50 "alt4.aspmx.l.google.com."MX google.com. 6m23s20 "alt1.aspmx.l.google.com."JSON格式输出
[email protected]:~$ dog A www.baidu.com -J{"responses":[{"additionals":[],"answers":[{"class":"IN","domain":"www.a.shifen.com.","name":"www.baidu.com.","ttl":5,"type":"CNAME"},{"address":"180.101.49.11","class":"IN","name":"www.a.shifen.com.","ttl":4,"type":"A"},{"address":"180.101.49.12","class":"IN","name":"www.a.shifen.com.","ttl":4,"type":"A"}],"authorities":[],"queries":[{"class":"IN","name":"www.baidu.com.","type":1}]}]}查看帮助
[email protected]:~$ dog --help总结
Dog是一个用于DNS查询的命令行工具,它的工作原理类似于dig 。它具有丰富多彩的输出,支持DNS-over-TLS 和 DNS-over-HTTPS协议,并且可以输出JSON格式 。


以上关于本文的内容,仅作参考!温馨提示:如遇健康、疾病相关的问题,请您及时就医或请专业人士给予相关指导!

「四川龙网」www.sichuanlong.com小编还为您精选了以下内容,希望对您有所帮助: