-
Notifications
You must be signed in to change notification settings - Fork 3.8k
ddns-scripts: add namesilo.com #28095
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,166 @@ | ||||||||||||
| #!/bin/sh | ||||||||||||
| # | ||||||||||||
| # SPDX-License-Identifier: GPL-2.0-only | ||||||||||||
| # | ||||||||||||
| # Script for updating NameSilo DNS records | ||||||||||||
| # 2026 Lin Fan <im dot linfan at gmail dot com> | ||||||||||||
| # | ||||||||||||
| # using following options from /etc/config/ddns | ||||||||||||
| # username - sub domain | ||||||||||||
| # password - api key | ||||||||||||
| # domain - domain | ||||||||||||
| # | ||||||||||||
| # optional parameters from /etc/config/ddns | ||||||||||||
| # ttl - ttl in seconds (ex: ttl=7200, default '3600') | ||||||||||||
| # pp - proxy protocol (ex: pp=socks5h, default 'http') | ||||||||||||
| # | ||||||||||||
| # reference: https://www.namesilo.com/api-reference | ||||||||||||
| # | ||||||||||||
| # SECURITY NOTE: | ||||||||||||
| # The NameSilo API requires the API key to be passed as a URL query parameter. | ||||||||||||
| # This means the key may be exposed in shell history, process listings (ps), | ||||||||||||
| # and system logs that record full command lines. Use a dedicated API key and | ||||||||||||
| # protect access to this system and its logs accordingly. | ||||||||||||
|
|
||||||||||||
|
||||||||||||
| [ -z "$username" ] && write_log 14 "ERROR: 'username' (sub domain) not set" && return 1 | |
| [ -z "$password" ] && write_log 14 "ERROR: 'password' (api key) not set" && return 1 | |
| [ -z "$domain" ] && write_log 14 "ERROR: 'domain' not set" && return 1 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "name": "namesilo.com", | ||
| "ipv4": { | ||
| "url": "update_namesilo_com_v1.sh" | ||
| }, | ||
| "ipv6": { | ||
| "url": "update_namesilo_com_v1.sh" | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing shebang line. All shell scripts in this project start with '#!/bin/sh'. Other update scripts like update_godaddy_com_v1.sh include this on line 1.