Script CLI change question

re:http://wiki.mikrotik.com/wiki/Advanced_Routing_Failover_without_Scripting

example:

/ip route
add dst-address=Host1 gateway=GW1 scope=10
add dst-address=Host2 gateway=GW2 scope=10



/ip route
add dst-address=facebook.com gateway=192.168.77.1 scope=10

results in :

value of dst-address must contain '/'

on routerOS v6.33.2

what am I misunderstanding?

You can’t use hostname with dst-address, it needs numeric address.

drrp!

/ip route
add dst-address=[:resolve facebook.com ] gateway=192.168.77.1 scope=10

But remember that the hostname gets resolved just once, when you add the rule. The address might change later.