Patent ID: 8572248

Claim:
A machine-implemented method for discovering and/or advertising a service in a wireless environment, the method comprising: receiving domain name system (DNS) information identifying a service available for access in a network; creating a DNS packet based on the received DNS information, the DNS packet including one or more domain names having one or more pointers referenced to one or more character strings that previously appear in the DNS packet without reciting the entire character strings; extracting a name, a type, and data from a name field, a type field, and a data field of a resource record of the DNS packet, respectively; and generating a key/value pair from the DNS packet, wherein a key of the key/value pair is generated based on the extracted name and type of the resource record of the DNS packet, wherein a value of the key/value pair is generated based on the extracted data of the resource record of the DNS packet, and wherein the key/value pairs is used to represent the service to be available for access in the network.