netcup-dns-api
Implementation for netcup DNS API in Golang.
All DNS API is implemented:
login
logout
infoDnsZone
infoDnsRecords
updateDnsZone
updateDnsRecords
Example Usage
import (
"log"
netcup "github.com/aellwein/netcup-dns-api/pkg/v1"
)
func main() {
client := netcup.NewNetcupDnsClient(12345, "myApiKey", "mySecretApiPassword")
session, err := client.Login()
if err != nil {
panic(err)
}
defer session.Logout()
if zone, err := session.InfoDnsZone("myowndomain.org"); err != nil {
panic(err)
} else {
log.Println("DNS zone:", zone)
}
}
This should give you an output like:
DNS zone: { "DomainName": "myowndomain.org", "Ttl": "...", "Serial": "...", "Refresh": "...", "Retry": "...", "Expire": "...", "DnsSecStatus": false
License
MIT License