handle the mapping between service name and IP address