Now, first try to get the ip of the agent using ping,
try later resolution in case of failure. This is solution more faster.
Goodbye coffescript \o/
Require agent client only when you use it.