# dnsEncodeName

Encodes a name as length-prefixed DNS labels terminated by a zero byte.

## Import

```ts
import { dnsEncodeName } from "@ensforge/core";
```

## Usage

```ts
const encoded = dnsEncodeName("ens.eth");
```

## Return Type

`DnsEncodedName`

## Effect

```ts
const effect = dnsEncodeName.effect("ens.eth");
```

Fails with `CodecError` when a label cannot be represented in DNS wire format.
