# Domain by Name

Fetch a Domain by its canonical name. Because `canonical_name` is materialized across both ENSv1 and ENSv2, the same lookup works regardless of protocol version. See [Connect](/docs/integrate/unigraph/examples) for setup.

<UnigraphStaticExample
  sql={exampleDomainByName.sql}
  ensDbSdk={exampleDomainByName.sdk}
>
  <EnsDbWriterSchemaIntro ensDbWriterSchemaName="ensindexer_0" slot="sql-tab-note"/>
  <EnsDbReaderIntro slot="ensdb-sdk-tab-note"/>
</UnigraphStaticExample>