Skip to content

libdns/loopia

Repository files navigation

libdns-loopia for libdns

Go Reference Go

Loopia API

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

Usage

import (
    loopia "github.com/libdns/loopia"
)
p := &loopia.Provider{
    Username: "youruser@loopiaapi",
    Password: "yourpassword",
}

zone := "example.org"
records, err := p.GetRecords(ctx, zone)

For more details check the _examples folder in the source.

Noteworthy

If you are adding or chainging records, like acme/letsencrypt validation, Loopia is somewhat slow to propagate the result. It might take up to 15 minutes. That said, I have seen it come throug in as little as 1,5 minutes.

To do everything this library can do the Loopia API user needs access to the following...

  • getSubdomains
  • addSubdomain
  • removeSubdomain
  • getZoneRecords
  • addZoneRecord
  • updateZoneRecord
  • removeZoneRecord