diff options
Diffstat (limited to 'dyndns.go')
-rw-r--r-- | dyndns.go | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 +} |