Skip to content

IMouTo-rar/GodDns

 
 

Repository files navigation

GodDNS

   ______              __   ____     _   __        
  / ____/  ____   ____/ /  / __ \   / | / /  _____
 / / __   / __ \ / __  /  / / / /  /  |/ /  / ___/
/ /_/ /  / /_/ // /_/ /  / /_/ /  / /|  /  (__  ) 
\____/   \____/ \__,_/  /_____/  /_/ |_/  /____/  
                         .___  .___             
   ____   ____         __| _/__| _/____   ______
  / ___\ /  _ \  ___  / __ |/ __ |/    \ /  ___/
 / /_/  >  <_> ) --- / /_/ / /_/ |   |  \\___ \ 
 \___  / \____/      \____ \____ |___|  /____  |
/_____/                   \/    \/    \/     \/ 
                                               
                                                

GitHub Codacy Badge CodeFactor

GitHub last commit GitHub code size in bytes Go

FOSSA Status

a DDNS tool written in go

Intro

generate a default config file

GodDns generate

use ip set in config

GodDns run

use ip address of interface set in config

GodDns run auto 

get ip address from api

GodDns run --api=ipify/identMe/others

through proxy

GodDns run --proxy=http://127.0.0.1:10809
GodDns run --proxy=enable
GodDns run --proxy=disable

parallel executing

GodDns run --parallel

Usage

USAGE:
   GodDns [global options] command [command options] [arguments...]
   GodDns run - run the DDNS service
   GodDns run auto - run ddns, use ip address of interface set in Device Section automatically
   GodDns run auto override - run ddns, override the ip address of interface set in each service Section
   GodDns generate - generate a default configuration file
COMMANDS:
   run, r, R       run the DDNS service 
   [--api ApiName, -i ApiName, -I ApiName  get ip address from provided ApiName, eg: ipify/identMe]
	   auto, a, A  run ddns, use ip address of interface set in Device Section automatically
   			override, o, O  run ddns, override the ip address of interface set in each service Section
OPTIONS:
   --time seconds                         run ddns per time(seconds) (default: 0)
   --parallel, --Parallel                 run ddns parallel (default: false)
   --retry times                          retry times (default: 3)
   --time-limitation times, --tl times, --TL times  run ddns per time(seconds) up to n times (default: 0)
   --silent, -s, -S                       no message output (default: false)
   --log value, -l value, -L value        Trace/Debug/Info/Warn/Error (default: "info")
   --config file, -c file, -C file        set configuration file
   --proxy url, -p url, -P url            set proxy url
   --help, -h, -H                         show help (default: false)

COMMANDS:
   generate, g, G  generate a default configuration file
   help, h         Shows a list of commands or help for one command

OPTIONS:
   --silent, -s, -S                 no message output (default: false)
   --log value, -l value, -L value  Trace/Debug/Info/Warn/Error
   --config file, -c file, -C file  set configuration file
   --help, -h, -H                   show help (default: false)

GLOBAL OPTIONS:
   --help, -h, -H     show help (default: false)
   --version, -v, -V  print the version info (default: false)

Configuration

Program Config

Service Config

TODO

  • add more service
  • new feature support multi-device for each service(like Device does)
  • ? refactor Dnspod.Config.ReadConfig:62

Recent activity Time period

Timeline graph

Structure

Structure

About

A ddns tool written in go

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%