如何在 MikroTik RouterOS 脚本/命令行中解析 DNS 名称
为了解析 DNS 名称,使用
resolve_command.rsc
resolve <domain name>Use
resolve_put_command.rsc
:put [resolve <domain name>]解析域名并打印 IP 地址。
示例
resolve_techoverflow.rsc
:put [resolve techoverflow.net]输出:
resolve_techoverflow_output.txt
[admin@CoreSwitch01] > :put [resolve techoverflow.net]
172.67.166.211Check out similar posts by category:
MikroTik
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow