dnsupdater

command module
v1.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2020 License: MIT Imports: 10 Imported by: 0

README

dnsupdater

Build Status GitHub GitHub release (latest by date) Total download

Obtain your current external IP address and update to the specified DNS record on CloudFlare

Primarily built for MIPS 74kc since my router has a MIPS 74kc CPU

How-to

Using pre-built binaries
  • Download the latest release for your target

  • Extract the archive.

  • Rename config.yaml.template to config.yaml.

  • Finish your configuration in the config.yaml

  • Upload dnsupdater and config.yaml to the device you want this app to run

  • Set up a cron job like

0 0,12 * * * /root/dnsupdater/dnsupdater > /var/log/update-dns.log 2>&1 &
Build from source
  • Install Go >= 1.12

  • Get this repo

git clone https://github.com/boris1993/dnsupdater.git
  • Build for MIPS 74kc

For Windows users:

install.bat

For *nix users:

make mips-softfloat

Then you will find the executable file under the bin/dnsupdater-linux-mips-softfloat directory.

  • Finish the configuration

Rename config.yaml.template to config.yaml and finish your configuration.

  • Upload to your router

Upload dnsupdater and config.yaml to your router.

And don't forget to give it executable permission.

  • Create a cron job
0 0,12 * * * /root/dnsupdater/dnsupdater > /var/log/update-dns.log 2>&1 &

Build for other platforms

You can check for all preset targets by

install.bat /?
make help

Or you can also specify your own GOARCH and GOOS (and maybe GOMIPS) to build for your platform as long as Go provides support to it.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package cfutil provides utilities about manipulating a CloudFlare DNS record.
Package cfutil provides utilities about manipulating a CloudFlare DNS record.
Package conf provides all models needed by this programme.
Package conf provides all models needed by this programme.
Package constants contains all constants needed in this programme
Package constants contains all constants needed in this programme
Package model provides all models needed by this programme.
Package model provides all models needed by this programme.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL