Hi,
I am trying to obtain an IP address from a host. The available Ping nodes does not seem to return the IP address, so I tried the EXEC node with the following command:
nslookup myhost.com
This worked, but the object returned is not well formatted, so I could not extract the IP address easily.
The complete msg object looks like this:
{"_msgid":"ef79c141.ca169","payload":"Address:\t11.22.33.44:53\n\nNon-authoritative answer:\nNon-authoritative answer:\nName:\tmyhost.com\nAddress: 11.22.33.44\n\n"}
I appreciate if anyone could point me in the right direction. I just need the ip address from this whole message.