This repository has been archived on 2024-04-02. You can view files and clone it, but cannot push or open issues or pull requests.
ddnser/main.go

23 lines
371 B
Go
Raw Normal View History

2023-01-10 01:09:35 +00:00
package main
2023-01-10 03:23:32 +00:00
import (
"log"
"nulo.in/ddnser/nameservers"
)
2023-01-10 01:09:35 +00:00
func main() {
2023-01-10 03:23:32 +00:00
njalla := nameservers.Njalla{Key: "yourkey"}
record, err := njalla.SetRecord("estoesprueba.nulo.in", "")
if err != nil {
log.Fatal(err)
}
log.Println(record)
record, err = njalla.SetRecord("estoesprueba.nulo.in", "1.1.1.1")
if err != nil {
log.Fatal(err)
}
log.Println(record)
2023-01-10 01:09:35 +00:00
}