Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 1.04 KB

README.md

File metadata and controls

36 lines (23 loc) · 1.04 KB

dnsupdater for Gandi LiveDNS API

Java CI with Gradle

This Spring Boot application calls the Fritz!Box API via SOAP, which returns the external IP address of your Fritz!Box Router and updates the DNS record using the Gandi LiveDNS API https://api.gandi.net/docs/livedns/

Instructions

  1. Build jar with ./gradlew bootJar.
  2. Deploy and run on your server: java -jar dnsupdater.jar.

You may want to run it as a systemd service at system startup time with a different user and limited rights.

Create /etc/systemd/system/ipupdater-springboot.service with

[Unit]
Description=A Spring Boot application.
After=syslog.target

[Service]
User=javauser
ExecStart=/home/someone/ipSpring.sh SuccessExitStatus=143

[Install]
WantedBy=multi-user.target

Optional:

Using an external configuration file:

java -jar dnsupdater.jar --spring.config.additional-location=my.properties