I have a static IP mapping for a host to resolve to an internal IP. However, in my script I want to resolve the public IP by using an external DNS server. Seems simple enough with the ":resolve <host> [server=22.214.171.124]" script command, but it's not working for me. It seems the :resolve command is always using local router DNS and ignoring the server=126.96.36.199 argument. Here's the example:
[email@example.com] > put [:resolve host.fqdn server=188.8.131.52]
But it's wrong, for example:
[root@nas1] ~# nslookup host.fqdn 184.108.40.206
I have no redirect rules on the router, as evidenced by the above host using nslookup on the LAN through that same router.
Edit: version is:
# feb/23/2016 18:17:54 by RouterOS 6.35rc12