> For the complete documentation index, see [llms.txt](https://docs.sns.id/dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sns.id/dev/sns-sdk/images-and-media/reverse-lookup.md).

# Reverse Lookup

Lookup the human readable domain name based on the public key of a domain name registry.

```typescript
import { reverseLookup, getDomainKeySync} from "@bonfida/spl-name-service";

// Public key of bonfida.sol
const { pubkey: domainKey } = getDomainKeySync('bonfida.sol')

const domainName = await reverseLookup(connection, domainKey); // bonfida
```

{% hint style="info" %}
Please note the owner's wallet public key and the public key of the domain registry differ. A reverse lookup uses the domain registry's public key as demonstrated above.&#x20;
{% endhint %}
