3.6/h/fix hostname detection without hosts entry