https://github.com/libdns/autodns
https://github.com/libdns/autodns
internetx internetx-autodns-api
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/libdns/autodns
- Owner: libdns
- License: mit
- Created: 2024-11-14T15:59:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-09-08T07:38:25.000Z (9 months ago)
- Last Synced: 2025-09-08T09:27:27.947Z (9 months ago)
- Topics: internetx, internetx-autodns-api
- Language: Go
- Homepage:
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
\ for [`libdns`](https://github.com/libdns/libdns)
=======================
[](https://pkg.go.dev/github.com/libdns/autodns)
This package implements the [libdns interfaces](https://github.com/libdns/libdns) for \, allowing you to manage DNS records.
Example:
```
package main
import (
"context"
"os"
"log"
"github.com/libdns/autodns"
)
func main() {
provider := autodns.Provider{
Username: os.Getenv("AUTODNS_USERNAME"),
Password: os.Getenv("AUTODNS_PASSWORD"),
}
records, err := provider.GetRecords(context.TODO(), "zone.example.org")
if err != nil {
log.Fatalf("unexpected error: %s", err)
}
fmt.Printf("%#v", records)
}
```
As an alternative, configure the provider struct with the following:
| Field | Description (default) | Required |
|------------|----------------------------|----------|
| Username | username, empty | yes |
| Password | password, empty | yes |
| Endpoint | https://api.autodns.com/v1 | no |
| Context | 4 | no |
| HttpClient | `&http.Client{}` | no |