User Tools

Site Tools


networking:router:mikrotik_resolve

This is an old revision of the document!


Use Hostnames in Mikrotik Routers

Mikrotik routers, like most others, do not directly support the use of hostnames instead of IP addresses.

However, we can use a simple script to resolve a hostname to an address-list, even if the hostname points to multiple IP addresses.

If the :resolve command does not complete normally, the script aborts and you will be left with a bad address-list.
As written, this script will not resolve multiple hostnames.
networking/router/mikrotik_resolve.1512492367.txt.gz · Last modified: 2017/12/05 09:46 by gcooper