drmu

module
v0.0.0-...-4289811 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MIT

README

DrMu

the Dynamic Route53 MikroTik Updater

Description

This utility creates a webserver, that accepts requests to the URL "/drmu/update/:domainName/:ipAddress"

Where :domainName is the subdomain name (eg. host1.example.com), and :ipAddress is the IP address to point to. Subdomains that don't exist, will be created, and existing ones updated.

Getting Started

Installing
Executing program

Ensure that your environment has AWS credentials setup correctly, see the following resource for further information.

Ensure you pass the -zone flag with the hosted zone ID you wish to change.

Usage

$./drmu --help
Usage of ./drmu:
  -address string
        address to bind on (default "localhost:8000")
  -alsologtostderr
        log to standard error as well as files
  -log_backtrace_at value
        when logging hits line file:N, emit a stack trace
  -log_dir string
        If non-empty, write log files in this directory
  -logtostderr
        log to standard error instead of files
  -stderrthreshold value
        logs at or above this threshold go to stderr
  -ttl int
        TTL for each record created in Route53 (default 300)
  -v value
        log level for V logs
  -vmodule value
        comma-separated list of pattern=N settings for file-filtered logging
  -zone string
        Route53 Hosted Zone ID (default "HOSTED_ZONE_ID")

Integrating with MikroTik

Add the script in Mikrotik via /system script add, and use the scheduler to trigger it, see the following resources:

License

This project is licensed under the MIT License - see the LICENSE file for details

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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