aboutsummaryrefslogtreecommitdiff
path: root/dyndns.go
diff options
context:
space:
mode:
Diffstat (limited to 'dyndns.go')
-rw-r--r--dyndns.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/dyndns.go b/dyndns.go
index 9b8a64c..21003dd 100644
--- a/dyndns.go
+++ b/dyndns.go
@@ -4,6 +4,8 @@ package main
import (
"flag"
"net"
+
+ "github.com/HimbeerserverDE/inwx"
)
func main() {
@@ -30,3 +32,14 @@ func main() {
}
}
}
+
+func updateRecords(c *inwx.Client, ids []int, content string) error {
+ _, err := c.Call(&inwx.NSUpdateRecordsCall{
+ IDs: ids,
+ RecordInfo: inwx.RecordInfo{
+ Content: content,
+ },
+ })
+
+ return err
+}