Use curl instead of wget
Use fqdn instead of hostname for hosts entry