calling sethostname from resetnetwork