Neoserv for libdns
Warning
This package is outdate since Neoserv has changed their web interface and is no longer working. PRs to update the package are welcome.
This package implements the libdns interfaces for Neoserv, allowing you to manage DNS records.
go get github.com/libdns/neoservYou can check out a minimal example of using this provider in the examples directory.
Run it with:
NEOSERV_USERNAME=your@email.com NEOSERV_PASSWORD=your_password NEOSERV_ZONE=your.domain go run ./examples/neoserv.goNeoserv only supports specific TTL values. The following are the supported TTL values:
- 1 minute
- 5 minutes
- 15 minutes
- 30 minutes
- 1 hour
- 6 hours
- 12 hours
- 24 hours (1 day)
- 2 days
- 7 days
- 14 days
- 30 days
By default, if an unsupported TTL is provided, the provider will use the closest supported value that is greater than or equal to the provided value. If you want to treat unsupported TTL values as errors, set UnsupportedTTLisError to true when creating the provider:
provider := neoserv.Provider{
Username: "your-neoserv-email",
Password: "your-neoserv-password",
UnsupportedTTLisError: true,
}