Forum Discussion

Jonathan_Galent's avatar
Nov 17, 2016

Is there a way to use RESOLV::lookup in an iApp template?

Is there a way to use RESOLV::lookup in an iApp template? I am trying to resolve domain names during my iApp deployment - I see I could maybe use tmsh dig? I tried searching for any TCL packages that might be imported but can't seem to find the one that the irule engine uses.

 

  • Duh... seems iApp creation is running in a tcl86 shell, this works:

     

    set ips [exec /usr/bin/dig $domainname +short]

     

  • This seems like it should work, but doesn't. Any other pointers are welcome.

    set ips [tmsh::run util dig $domainname +short]

  • Duh... seems iApp creation is running in a tcl86 shell, this works:

     

    set ips [exec /usr/bin/dig $domainname +short]