Skip to content

About

Caddy module: dns.providers.binarylane

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

Binary Lane module for Caddy

This package contains a DNS provider module for Caddy. It can be used to manage DNS records in zones hosted by Binary Lane, an Australian cloud provider.

Caddy module name

dns.providers.binarylane

Configuration

The module needs one thing: an API token from the Binary Lane control panel. Create it under Account → API Tokens; the DNS endpoints are covered by a general-purpose token.

Prefer {env.BINARYLANE_API_TOKEN} over writing the token into the config, so it is not sitting in a file Caddy reads at startup.

Caddyfile

tls {
	dns binarylane {env.BINARYLANE_API_TOKEN}
}

Or, equivalently, with the token as a subdirective:

tls {
	dns binarylane {
		api_token {env.BINARYLANE_API_TOKEN}
	}
}

api_base is also accepted, and defaults to https://api.binarylane.com.au/v2/. It exists for testing against a stand-in server and should not normally be set.

JSON

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

{
	"module": "acme",
	"challenges": {
		"dns": {
			"provider": {
				"name": "binarylane",
				"api_token": "{env.BINARYLANE_API_TOKEN}"
			}
		}
	}
}

A note on TTL

Binary Lane fixes the TTL of every record at 3600 seconds and rejects any request that tries to change it. The provider therefore never sends a TTL, and a short one asked for by an ACME client is silently served as 3600. This does not affect DNS-01: the challenge record is created, validated and removed, and the TTL only means a resolver may cache the absence of it beforehand. See the provider README for the detail.

Building

xcaddy build --with github.com/caddy-dns/binarylane

About

Caddy module: dns.providers.binarylane

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages