add get and mod hostname function to network module