added simple function to output the domain name of the current network based on hostname