Joh*_*ohn 225 domain-name-system linux txt-record
是否有可用于检查域的 TXT 记录的 linux shell 命令?
Whe*_*ice 311
Dig 也会做得很好:dig -t txt example.com如果你添加了这个+short选项,你只会得到引号中的 txt 记录,而没有其他杂物。
asj*_*sjo 92
所述主机(1)命令有一个很好的,简洁的输出:
$ host -t txt google.com
google.com descriptive text "v=spf1 include:_netblocks.google.com ip4:216.73.93.70/31 ip4:216.73.93.72/31 ~all"
$ wajig findfile $(which host)
bind9-host: /usr/bin/host
$
Run Code Online (Sandbox Code Playgroud)
使用dig(1)我“必须”一直添加“+short”选项。
(我在 Debian 上)。