add get_[static/dynamic/pretty]hostname functionality