dnsup

command module
v0.0.0-...-2ed423a Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: ISC Imports: 12 Imported by: 0

README

SYNOPSIS

dnsup [options]

DESCRIPTION

A dynamic DNS client to monitor the public IP address of an interface and publish using the Cloudflare API.

BUILDING

CGO_ENABLED=0 go build -trimpath -ldflags "-s -w"

EXAMPLES

dnsup example.com eth0:host1:inet6 eth1:host2:resolv

ARGUMENTS

The command line arguments consist of colon delimited strings:

<interface>:<label>:<strategy>[:<poll-interval>]

Supported strategies are:

inet : synonym for inet4

inet4 : return the IPv4 address for interface

inet6 : return the IPv6 address for interface

resolv : synonym for resolv4

resolv4 : resolve the external IPv4 address of the interface using DNS

resolv6 : resolve the external IPv6 address of the interface using DNS

OPTIONS

apikey string : Cloudflare scoped API token

dryrun : Do not update DNS

poll-interval duration : IP address discovery poll interval (default 1m0s)

service string : Service for discovering IP address: Akamai, Google, OpenDNS (default "google")

ttl int : DNS TTL (default 300)

verbose int : Debug output

ENVIRONMENT VARIABLES

CLOUDFLARE_API_TOKEN : scoped API token with edit DNS zone capability

Documentation

Overview

Copyright (c) 2020-2024, Michael Santos <michael.santos@gmail.com>

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Jump to

Keyboard shortcuts

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