Some clouds have misconfigured images that can't resolve their own hostname. There should be a validation during the startup of the agent to check for this case.