Skip to content

This application retrieves the external IP address of your router, which is updated frequently by the internet service provider and tells it to your DNS provider.

Notifications You must be signed in to change notification settings

mirkosrc/dnsupdater

Repository files navigation

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

About

This application retrieves the external IP address of your router, which is updated frequently by the internet service provider and tells it to your DNS provider.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published