# Service Discovery

| brfc         | title                      | authors                                       | version |
| ------------ | -------------------------- | --------------------------------------------- | ------- |
| b2aa66e26b43 | bsvalias Service Discovery | andy (nChain), Ryan X. Charles (Money Button) | 1       |

Service discovery is separated into two phases:

* [Host Discovery](https://docs.bsvblockchain.org/paymail/service-discovery/host-discovery) is a DNS based lookup of the responsible host for a given paymail alias
* [Capability Discovery](https://docs.bsvblockchain.org/paymail/service-discovery/capability-discovery) resolves the paymail service endpoint URIs from the responsible DNS host and describes the capabilities supported by a given paymail service instance

## Service Discovery Process

<figure><img src="https://2147185133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWtK4ab0ntyPZBmGoKq4t%2Fuploads%2Fgit-blob-921a39b8ecade19ef3bb30621314511abcf995da%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
