Name resolution in ANS involves the same first step as that of Registering for a name. The name to be queried is used as input to the standardized TEAL program to determine the Logic Signature account address. Subsequently, using the indexer API, the Logic Signature account's local storage is queried for the values corresponding to the Registry smart contract. These values include the owner of the name and social media profiles.