1

I have a Raspberry Pi 3 running a webserver on Ubuntu Snappy Core 16, and I'm usind dynamic DNS to address to my IP. I use NO-IP for a free dynamic DNS and it requires an update every 30 days or it expires. They offer packages for their own Dynamic DNS Update Client, but as far as I know, I'm not able to install these programs with the Snappy Core. My router doesn't support this, so I can't setup it that way.

Is there a way to setup these scheduled updates with Snappy Core 16? Still a bit new with these systems so simpler solutions are preferred.

1 Answers1

1

First of all, you can still use their dynamic update client on Ubuntu Core, just download their tarball and use the pre-built binaries out of it.

If that wasn't good enough for you, it would be incredibly easy to make a snap out of it. Create a snapcraft.yaml file, fill it out like so:

name: dynamic-update-client
version: 2.1.9snap1
summary: No-IP dynamic DNS update client
grade: stable
confinement: strict
description: |
  Dynamic DNS Update Client continually checks for IP address changes in the
  background and automatically updates the DNS at No-IP whenever it changes.

apps:
  noip2:
    command: noip2
    plugs: [network, network-bind]

parts:
  dynamic-update-client:
    plugin: make
    source: https://www.noip.com/client/linux/noip-duc-linux.tar.gz
    source-subdir: noip-2.1.9-1
    artifacts: [noip2] # Otherwise it tries to configure while building
    build-packages: [gcc, libc6-dev]
    organize:
      noip2: bin/

and run snapcraft on it.

kyrofa
  • 7,502