application of common methode on host_name's definition