[redhat][network] get_hostname method added to redhat based os