1. A computer-executable method for automatic configuration of a computing device in a content-centric network (CCN), the method comprising: sending, by the computing device, a CCN interest packet, requesting configuration information, wherein the CCN interest packet is routed in the content-centric network based on a hierarchically structured variable-length identifier (HSVLI) that identifies the CCN interest packet and has a predetermined name prefix; receiving a CCN content object in response to the CCN interest packet, wherein payload of the CCN content object specifies at least a service and a name prefix associated with the service; configuring namespaces of the computing device based on the received CCN content object; and generating a request for the service based on the configured namespaces, which involves generating a second CCN interest packet identifiable by a second HSVLI, wherein a prefix of the second HSVLI includes the name prefix associated with the service, and wherein the second CCN interest packet is routed in the content-centric network based on the second HSVLI.