Rename function for setting the resource hostname
Added missing dash delimiter to command headers