Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/HarrPerson/hostingDeUpdateIP
https://github.com/HarrPerson/hostingDeUpdateIP
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/HarrPerson/hostingDeUpdateIP
- Owner: HarrPerson
- Created: 2020-06-03T20:14:40.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-25T20:39:26.000Z (about 4 years ago)
- Last Synced: 2024-05-18T18:03:15.919Z (4 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hostingDeUpdateIP
_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_.
## Command line arguments
```bash
-cf string
ConfigFile (default "config.json")
-ec
Show Example Config
-h Show Help
-v Show Version
```## Configuration
### Example Configuration
The example shows only mandatory elements. A full example can be printed with
`hostingDeUpdateIP -ec````json
{
"HostingDe": {
"Api": {
"AuthToken": "NOT-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.