only lowercase hostnames are valid hostnames
refactored recordUpdate method