All Projects → Mr-Jos → namesilo_ddns_cli

Mr-Jos / namesilo_ddns_cli

Licence: MIT license
Namesilo DDNS CLI script. No dependency is needed except wget/curl.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to namesilo ddns cli

ddns
a multiple providers ddns script without dependencies
Stars: ✭ 47 (+46.88%)
Mutual labels:  ddns, namesilo
BitSrunLoginGo
深澜校园网登录程序 Go 语言版,适用于路由器、windows、linux 等。提供对 OpenWrt、Docker、Go Module 的支持
Stars: ✭ 112 (+250%)
Mutual labels:  ddns
cloudflare-ddns-updater
Dynamic DNS (DDNS) service based on Cloudflare! Access your home network remotely via a custom domain name without a static IP! Written in pure BASH~
Stars: ✭ 434 (+1256.25%)
Mutual labels:  ddns
Dnspython
a powerful DNS toolkit for python
Stars: ✭ 1,838 (+5643.75%)
Mutual labels:  ddns
DnsTube
Access your computer from anywhere. DnsTube is a Windows .NET dynamic DNS client for Cloudflare.
Stars: ✭ 137 (+328.13%)
Mutual labels:  ddns
cloudflareddns
DDNS with Cloudflare
Stars: ✭ 33 (+3.13%)
Mutual labels:  ddns
AliDDNSNet
使用 C# + .NET Core 开发的开源 DDNS 工具,基于阿里云的 DNS API 接口。
Stars: ✭ 88 (+175%)
Mutual labels:  ddns
dynamic-dns-netcup-api
A simple dynamic DNS client written in PHP for use with the netcup DNS API.
Stars: ✭ 127 (+296.88%)
Mutual labels:  ddns
cloudflare-ddns
A script to update your Cloudflare DNS records at a glance.
Stars: ✭ 152 (+375%)
Mutual labels:  ddns
docker-ddns-cloudflare
Cloudflare DDNS Script
Stars: ✭ 21 (-34.37%)
Mutual labels:  ddns
route53-dynamic-dns
Update AWS Route53 hosted zone with current public IP address. Alternative to Dynamic DNS services such as Dyn, No-IP, etc
Stars: ✭ 29 (-9.37%)
Mutual labels:  ddns
aliyun-ddns
[Go] Update Aliyun DDNS record from OpenWRT or CLI. 阿里云域名动态解析客户端, 万网, 云解析, Windows, Linux
Stars: ✭ 17 (-46.87%)
Mutual labels:  ddns
ddns
No description or website provided.
Stars: ✭ 26 (-18.75%)
Mutual labels:  ddns
brook
Brook 端口转发 一键管理脚本修改版 增加了对动态域名的支持 基于逗比版本修改而来
Stars: ✭ 113 (+253.13%)
Mutual labels:  ddns
CloudXNS-DDNS-with-PowerShell
The CloudXNS DDNS with PowerShell
Stars: ✭ 46 (+43.75%)
Mutual labels:  ddns
aliddns
阿里云动态DNS解析。
Stars: ✭ 17 (-46.87%)
Mutual labels:  ddns
Ddns
🚩 自动更新域名解析到本机IP(支持dnspod,阿里DNS,CloudFlare,华为云,DNSCOM...)
Stars: ✭ 2,582 (+7968.75%)
Mutual labels:  ddns
Vultr-Dynamic-DNS
Dynamically update IP addresses in Vultr DNS without services like No-IP
Stars: ✭ 18 (-43.75%)
Mutual labels:  ddns
PyDDNS
Complete system to create your own server ddns
Stars: ✭ 57 (+78.13%)
Mutual labels:  ddns
vertx-ddns
基于 Vert.x 的 DDNS 解决方案。自动更新域名解析到本机IP, 支持的DNS服务商: Alidns(阿里云) 、 Dnspod(腾讯云) 、Cloudflare、华为云
Stars: ✭ 126 (+293.75%)
Mutual labels:  ddns

Namesilo DDNS CLI

namesilo_ddns_cli is a command line tool for Namesilo DDNS, which is written in Bash depending on wget/curl only.

It is designed mainly to reduce dependences and system load as much as possible. Therefore, light-weight Linux distributions are especially appropriate to use it, like Raspberry, Openwrt, Merlin, Unraid, DSM, QTS...

Version 2 Upgrade (2020.11)

  • Rewrite based on Bash builtin commands, and remove all other dependences except for wget or curl.
  • No API request needed for normal running by using cache in log, and possible for IP-checking with high frequency.
  • Create running log with automatic compression and length control.
  • Enable command-line support.

Feathers

  • Multi-Domains Support
  • IPv4 & IPv6 Support
  • Load Balancing for IP-Check
  • Minimal API requests by Cache
  • Logging with Length Control

Requirements

  • wget or curl

Usage

Usage: namesilo_ddns.sh <command> ... [parameters ...]
Commands:
  --help                   Show this help message
  --version                Show version info
  --key, -k <apikey>       Specify Namesilo API key
  --host, -h <host>        Add a hostname
  --refetch, -r            Refetch records from Namesilo

Example:
  namesilo_ddns.sh -k c40031261ee449037a4b44b1 \
      -h yourdomain1.tld \
      -h subdomain1.yourdomain1.tld \
      -h subdomain2.yourdomain2.tld

Exit codes:
    0    Successfully updating for all host(s)
    2    Exist updating failed host(s)
    9    Arguments error

Tips:
  Strongly recommand to refetch records or clear caches in log,
  if your DNS records have been updated by other ways.

You can also edit the configs and settings in the head of script.

Applications

Regular Running for common Linux

  1. SSH to your device , and place namesilo_ddns.sh into somewhere, like /opt/ddns/. (Note: For EdgeOS, the script should be placed in /config/scripts/)

  2. Make sure your permissions of destination and script:

chmod u+w /opt/ddns
chmod u+x /opt/ddns/namesilo_ddns.sh
  1. Edit crontab config:
crontab -e
  1. Insert and save this line (updating the two hosts every 5 minutes):
*/5 * * * *  /opt/ddns/namesilo_ddns.sh -k c40031261ee449037a4b44b1 -h subdomain1.yourdomain1.tld -h subdomain2.yourdomain2.tld

Regular Running for Synology DSM

  1. Place namesilo_ddns.sh into somewhere in your NAS, e.g. /homes/<yourname>/ddns/.

  2. Start Control Panel, click Advanced Mode, open Task Scheduler.

  3. Access Create --> Scheduled Task --> User-defined script.

  4. Toggle to Schedule tab, set running every 5 minutes daily.

  5. Toggle to Task Settings tab, in Run command input edited command below, e.g.

/var/services/homes/<yourname>/ddns/namesilo_ddns.sh -k c40031261ee449037a4b44b1 -h subdomain1.yourdomain1.tld -h subdomain2.yourdomain2.tld
  1. If you check out Send run details by email and ... only when ... terminates abnormally, you will receive mail when occur error.

Use in Asuswrt-Merlin

Why use this solution? If you want to

  • DDNS multiple hosts

  • DDNS IPv6 hosts

  • reduce API requests greatly

  • check updating log

Setup

  1. Edit the API key and hosts in this script, and save as ddns-start.
#!/usr/bin/env bash

./namesilo_ddns.sh -k c40031261ee449037a4b44b1 \
      -h subdomain1.yourdomain1.tld \
      -h subdomain2.yourdomain2.tld

if [ $? -eq 0 ]; then
  /sbin/ddns_custom_updated 1
else
  /sbin/ddns_custom_updated 0
fi
  1. SSH to your router and place ddns-start and namesilo_ddns.sh under /jffs/scripts/.

  2. Make sure your permissions of destination and script:

chmod u+w /jffs/scripts
chmod u+x /jffs/scripts/namesilo_ddns.sh
chmod u+x /jffs/scripts/ddns-start
  1. Log into the router web UI:
    • Go to Advanced Settings > WAN > DDNS
    • Set Server to Custom
    • Click the Apply button
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].