Help us shape the future of Go! Take the 2026 Go Developer Survey

ddregister

command module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

README

ddregister

This code provides Dynamic DNS Registration for any hosts within your domain, which is registered through Google Domains. The code should be run as a daemon, as it checks the IP address of your NAT domain using ipify and re-registers with Google if your IP address has changed. You can set the interval for the registration. To use,

bash% go get -u github.com/djthorpe/ddregister
bash% ddregister -help
Usage of ddregister:
  -debug
    	Set debugging mode
  -dns.passwd string
    	DNS registry password
  -dns.user string
    	DNS registry username
  -host string
    	Hostname to register
  -interval duration
    	IP address discovery interval (default 1h0m0s)
  -log.append
    	When writing log to file, append output to end of file
  -log.file string
    	File for logging (default: log to stderr)
  -verbose
    	Verbose logging

The -dns.user and -dns.passwd flags are required and can be retrieved as per these intructions. For example,

bash% ddregister \
  -dns.user   XXXXXXXXXXXXXXX \
  -dns.passwd XXXXXXXXXXXXXXX \
  -host       XXXXXXXXXXXXXXX.mydomain.com \
  -interval 15s

Will run the code in the foreground and re-register your dynamic DNS entry every 15 minutes.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
sys
dns

Jump to

Keyboard shortcuts

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