[COOK-2381] Modified behavior to add a new line with internal IP, fqdn and hostname instead of clobbering localhost