Skip to content
/ inwx Public

INWX provider implementation for libdns

License

Notifications You must be signed in to change notification settings

libdns/inwx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

INWX for libdns

Go Reference Tests

This package implements the libdns interfaces for INWX, allowing you to manage DNS records.

This provider uses the JSON-RPC API, which is described in the official documentation.

Authenticating

To authenticate you need to supply following credentials:

  • Your INWX username
  • Your INWX password
  • A shared secret if you have enabled Mobile TAN (two-factor authentication)

Example

package main

import (
    "context"
    "fmt"

    "github.com/libdns/inwx"
)

func main() {
    provider := &inwx.Provider{
        Username: "<username>",
        Password: "<password>",
        SharedSecret: "<sharedSecret>",
        // Uncomment the following line, if the test environment should be used:
        // EndpointURL: "https://api.ote.domrobot.com/jsonrpc/"
    }
    zone := "example.com."

    records, err := provider.GetRecords(context.TODO(), zone)

    if err != nil {
        fmt.Printf("Error: %s", err.Error())
        return
    }

    fmt.Println(records)
}

About

INWX provider implementation for libdns

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages