How to resolve DNS name in MikroTik RouterOS scripting/command line
In order to resolve a DNS name use
example.txt
resolve <domain name>
Use
example.txt
:put [resolve <domain name>]
to resolve a domain name and print the IP address.
Example
example.txt
:put [resolve techoverflow.net]
Output:
example.txt
[admin@CoreSwitch01] > :put [resolve techoverflow.net]
172.67.166.211
Check 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