I need a script which will be obtaining and IP address from a hostname imap.gmail.com and then updating the email server.
I know it should look something like
Code: Select all
:local emailip
:set emailip 127.0.0.1
:log info ("Updating email server with: $emailip")
:tool e-mail set address="$emailip"
I tried to use PING address=imap.gmail.com but have no idea how to gather just the HOST part of it.