# HEDNS\_DYNAMIC\_ON

`HEDNS_DYNAMIC_ON` enables [Dynamic DNS](https://dns.he.net/) on a record managed by the Hurricane Electric DNS provider. When enabled, HE DNS assigns a DDNS key to the record that can be used with the HE DDNS update API (`https://dyn.dns.he.net/nic/update`).

If a record is already dynamic, its dynamic state is preserved across modifications even without explicitly specifying this modifier.

To set a specific DDNS key, use [`HEDNS_DDNS_KEY()`](https://docs.dnscontrol.org/language-reference/record-modifiers/service-provider-specific/hurricane-electric-dns/hedns_ddns_key) instead.

{% code title="dnsconfig.js" %}

```javascript
D("example.com", REG_NONE, DnsProvider(DSP_HEDNS),
    A("dyn", "0.0.0.0", HEDNS_DYNAMIC_ON),
    AAAA("dyn6", "::1", HEDNS_DYNAMIC_ON),
);
```

{% endcode %}
