hostingDeUpdateIP updates DNS entries for dynamically changed IPv4 and IPv6 addresses. It works with the API of hosting.de
The client reads the external IPv4 address and the assigned IPv6 address, based on a postfix.
-cf string
ConfigFile (default "config.json")
-ec
Show Example Config
-h Show Help
-v Show Version
The example shows only mandatory elements. A full example can be printed with
hostingDeUpdateIP -ec
{
"HostingDe": {
"Api": {
"AuthToken": "NO-KEY-SET"
}
},
"Domains": [
{
"Host": "domain1.tld",
"SetHostToo": true,
"Subs": [
"www",
"www2"
]
},
{
"Host": "domain2.tld",
"SetHostToo": false,
"Subs": [
"blog"
]
}
],
"ZoneUpdateDefault": {
"ZoneConfig": {
"EmailAddress": "[email protected]"
}
},
"Ipv6Postfix": "::1234:5678",
"LogLevel": "Debug"
}
AuthToken
holds your API-Token from hosting.de
.
The array Domains
holds the domain, named Host
and the sub domains as array, named Subs
. SetHostToo
defines, if domain also should be updated or only sub domains. Host
is necessary to identify the Zone of the sub domains.
Ipv6Postfix
holds the IPv6 postfix. Your ISP delegates a IPv6 prefix to your router which mostly changes after router or modem reboot. A static IPv6 address can be assigned to an interface via IPv6 DHCP service. Most routers allow the assignment of an IPv6 postfix.