> For the complete documentation index, see [llms.txt](https://docs.dnscontrol.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dnscontrol.org/provider/luadns.md). Agents can also search and read this documentation through its [MCP server](https://docs.dnscontrol.org/~gitbook/mcp).

# LuaDNS

### Configuration

To use this provider, add an entry to `creds.json` with `TYPE` set to `LUADNS` along with your [email and API key](https://www.luadns.com/api.html#authentication).

Example:

{% code title="creds.json" %}

```json
{
  "luadns": {
    "TYPE": "LUADNS",
    "email": "your-email",
    "apikey": "your-api-key"
  }
}
```

{% endcode %}

### Metadata

This provider does not recognize any special metadata fields unique to LuaDNS.

### Usage

An example configuration:

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

```javascript
D("example.com", REGISTRAR(), SERVICE("luadns"),
    A("test", "1.2.3.4"),
);
```

{% endcode %}

### Activation

[Create API key](https://api.luadns.com/api_keys).

### Caveats

* LuaDNS cannot change the default nameserver TTL in `nameserver_ttl`, it is forced to fixed at 86400("1d"). This is not the case if you are using vanity nameservers.
* This provider does not currently support the "FORWARD" and "REDIRECT" record types.
* The API is available on the LuaDNS free plan, but due to the limit of 30 records, some tests will fail when doing integration tests.
* Changes are sent in bulk requests rather than one request per record set. Only consecutive changes of the same kind (creates, updates or deletes) share a request, so the order DNSControl chose is kept; a request holds at most 100 records. If a request fails, all of the changes in it fail together.

### Feature Summary

* Support Level and Type
  * [Official Support](https://docs.dnscontrol.org/provider/index.md#providers-with-official-support): ❌
  * DNS Provider: ✅
  * Registrar: ❌
* API-level Features
  * [Concurrent fetching](https://docs.dnscontrol.org/advanced-features/concurrency-verified.md): ✅
  * [dual host](https://docs.dnscontrol.org/advanced-features/dual-host.md): ✅
  * create-domains: ✅
  * [get-zones](https://docs.dnscontrol.org/commands/get-zones.md): ✅
  * [AUTODNSSEC](https://docs.dnscontrol.org/language-reference/domain-modifiers/autodnssec_on.md): ❌
* Supported Record Types
  * [A](https://docs.dnscontrol.org/language-reference/domain-modifiers/a.md) [AAAA](https://docs.dnscontrol.org/language-reference/domain-modifiers/aaaa.md) [ALIAS](https://docs.dnscontrol.org/language-reference/domain-modifiers/alias.md) [CAA](https://docs.dnscontrol.org/language-reference/domain-modifiers/caa.md) [CNAME](https://docs.dnscontrol.org/language-reference/domain-modifiers/cname.md) [HTTPS](https://docs.dnscontrol.org/language-reference/domain-modifiers/https.md) [MX](https://docs.dnscontrol.org/language-reference/domain-modifiers/mx.md) [NS](https://docs.dnscontrol.org/language-reference/domain-modifiers/ns.md) [OPENPGPKEY](https://docs.dnscontrol.org/language-reference/domain-modifiers/openpgpkey.md) [PTR](https://docs.dnscontrol.org/language-reference/domain-modifiers/ptr.md) [SRV](https://docs.dnscontrol.org/language-reference/domain-modifiers/srv.md) [SSHFP](https://docs.dnscontrol.org/language-reference/domain-modifiers/sshfp.md) [TLSA](https://docs.dnscontrol.org/language-reference/domain-modifiers/tlsa.md) [TXT](https://docs.dnscontrol.org/language-reference/domain-modifiers/txt.md)
