# dnssec

Canonical URL: https://developers.iagenify.com/ar/sdk/ref/domain/dnssec/
Language: ar

`domain.dnssec.enable() · status() · disable()`

Signs the zone, and hands you the DS record to post at your registrar — in that order.

Status: the DS is yours to post · order matters · disabling warns

```javascript
const ds = await domain.dnssec.enable();
// { status: "pending", ds: { keyTag, algorithm, digestType, digest, record } }

await domain.dnssec.status();
await domain.dnssec.disable();   // carries a warning, and it is not decoration
```

## Signing first, DS second — never the reverse {#order}

Until the DS is at the registrar the signature is simply not verified: harmless. The other way round is not. A DS pointing at a zone that no longer signs makes the domain **unreachable**, not merely « not secure » — so remove the DS at your registrar first, then call `disable()`.

- [owner()](/ar/sdk/ref/domain/owner): `dnssecAtRegistrar`.
- [verify()](/ar/sdk/ref/domain/verify): Proving the domain to a service.

```python
ds = domain.dnssec.enable()
# {"status": "pending", "ds": {"keyTag", "algorithm", "digestType", "digest", "record"}}

domain.dnssec.status()
domain.dnssec.disable()   # carries a warning, and it is not decoration
```
