autodns

package module
v0.0.0-...-c244eb3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

AutoDNS Module for Caddy

This package provides a DNS provider module for Caddy. It allows you to manage DNS records with AutoDNS.

Caddy Module Name

dns.providers.autodns

Installation

To install this module, add it to your Caddy configuration.

Configuration Examples

JSON Configuration

To use this module for the ACME DNS challenge, configure the ACME issuer in your Caddy JSON like so:

{
  "apps": {
    "tls": {
      "automation": {
        "policies": [
          {
            "issuers": [
              {
                "module": "acme",
                "challenges": {
                  "dns": {
                    "provider": {
                      "name": "autodns",
                      "Username": "<AUTODNS_USERNAME>",
                      "Password": "<AUTODNS_PASSWORD>",
					  "Endpoint": "https://api.autodns.com/v1", //Optional
					  "Context": 4 //Optional
                    }
                  }
                }
              }
            ]
          }
        ]
      }
    }
  }
}
Caddyfile Configuration

You can also configure the module using the Caddyfile.

Global Configuration
{
  acme_dns autodns {
    username "<username>"
    password "<password>"
  }
}
Per-Site Configuration
tls {
  dns autodns {
    username "<username>"
    password "<password>"
  }
}

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

Acknowledgements

This module is based on the libdns and Caddy projects.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct{ *libdnsautodns.Provider }

Provider lets Caddy read and manipulate DNS records hosted by this DNS provider.

func (Provider) CaddyModule

func (Provider) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (*Provider) Provision

func (p *Provider) Provision(ctx caddy.Context) error

Provision sets up the module. Implements caddy.Provisioner.

func (*Provider) UnmarshalCaddyfile

func (p *Provider) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

UnmarshalCaddyfile sets up the DNS provider from Caddyfile tokens. Syntax:

providername [<api_token>] {
    api_token <api_token>
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址