How can I do a "nslookup <hostname>" in an eem tcl ?
I need to modify the running-config by putting the same (!) ip address at several places (crypto map peers, access-lists, routes).
No Problem. Basically that already works when using IP adresses.
But now the IP adress has to be resolved by DNS. The responsible DNS server uses Round-Robin-DNS and delivers another IP with every answer.
If I use the hostname in the cli_exec, the hostname is parsed to IOS,
and IOS resolves the hostname to a different IP with every "cli_exec"; leading to different IPs in the running config.
Is there a dns command or lib available in the IOS-TCL ?