├── .gitignore ├── LICENSE ├── NOTICE ├── config_sample ├── noipupdater.sh └── readme.md /.gitignore: -------------------------------------------------------------------------------- 1 | config 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "[]" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright [yyyy] [name of copyright owner] 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | http://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. 203 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Copyright (C) 2013 Matthew D. Mower 2 | Copyright (C) 2012 AntonioCS 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | 16 | This product includes software developed by Matt Mower. 17 | 18 | Portions of this software are modified from the "Simple Bash No-IP Updater" 19 | by AntonioCS (https://github.com/AntonioCS/no-ip.com-bash-updater), 20 | which at the time of fork, May 28, 2013, had no stated copyright or license. 21 | -------------------------------------------------------------------------------- /config_sample: -------------------------------------------------------------------------------- 1 | # Sample config file for Bash No-IP Updater 2 | 3 | # Copy this file to "config" in the same directory as noipupdater.sh. 4 | # Retain the double quotes surrounding each of the values below. 5 | 6 | # No-IP uses your email address for the username. 7 | USERNAME="email@address.com" 8 | PASSWORD="password" 9 | 10 | # Multiple hosts associated with a single IP address can be entered by 11 | # separating them with commas: HOST="host1.domain.org,host2.domain.org" 12 | HOST="host.domain.com" 13 | 14 | # The directory where logs will be stored (required) 15 | LOGDIR="$HOME/logs" 16 | 17 | # Rotate and compress (if gzip support is present) log files when 18 | # length exceeds 10010 lines, moving 10000 lines to backup and 19 | # retaining remaining lines in original logfile 20 | ROTATE_LOGS=true 21 | 22 | # Console output verbosity 23 | # 0 - Show all output 24 | # 4 - Show only errors 25 | # 6 - Hide all output 26 | CONSOLE_OUTPUT_LEVEL=0 27 | -------------------------------------------------------------------------------- /noipupdater.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Copyright (C) 2013 Matthew D. Mower 4 | # Copyright (C) 2012 AntonioCS 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | 18 | set -eo pipefail 19 | 20 | # Functions 21 | 22 | function usage() { 23 | console_error "$0 [-c /path/to/config] [-i 123.123.123.123]" 24 | exit 1 25 | } 26 | 27 | function cmd_exists() { 28 | command -v "$1" > /dev/null 2>&1 29 | } 30 | 31 | # Adapted from one of the more readable answers by Gilles at 32 | # https://unix.stackexchange.com/questions/60653/urlencode-function/60698#60698 33 | function urlencode() { 34 | local string="$1" 35 | while [ -n "$string" ]; do 36 | local tail="${string#?}" 37 | local head="${string%"$tail"}" 38 | case "$head" in 39 | [-._~0-9A-Za-z]) 40 | printf "%c" "$head";; 41 | *) 42 | printf "%%%02x" "'$head" 43 | esac 44 | string="$tail" 45 | done 46 | } 47 | 48 | function http_get() { 49 | if cmd_exists curl; then 50 | curl -s --user-agent "$USERAGENT" "$1" 51 | elif cmd_exists wget; then 52 | wget -q -O - --user-agent="$USERAGENT" "$1" 53 | else 54 | console_error "No http tool found. Install curl or wget." 55 | exit 1 56 | fi 57 | } 58 | 59 | function parse_date() { 60 | local string="$1" 61 | PARSED_DATE=$(date -d "$string" +'%s' 2>/dev/null || true) 62 | if [ -z "$PARSED_DATE" ] && cmd_exists gdate; then 63 | PARSED_DATE=$(gdate -d "$string" +'%s' 2>/dev/null || true) 64 | fi 65 | if [ -z "$PARSED_DATE" ]; then 66 | PARSED_DATE=$(date -jf "%Y-%m-%d %H:%M:%S" "$string" +'%s' 2>/dev/null || true) 67 | fi 68 | if [ -z "$PARSED_DATE" ]; then 69 | console_error "Could not parse date." 70 | exit 1 71 | fi 72 | return 0 73 | } 74 | 75 | # IP Validator 76 | # http://www.linuxjournal.com/content/validating-ip-address-bash-script 77 | function valid_ip() { 78 | local ip=$1 79 | local stat=1 80 | 81 | if [[ $ip =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then 82 | OIFS=$IFS 83 | IFS='.' 84 | ip=($ip) 85 | IFS=$OIFS 86 | [[ ${ip[0]} -le 255 && ${ip[1]} -le 255 \ 87 | && ${ip[2]} -le 255 && ${ip[3]} -le 255 ]] 88 | stat=$? 89 | fi 90 | 91 | return $stat 92 | } 93 | 94 | function get_logline() { 95 | local host 96 | local response 97 | local response_a 98 | local response_b 99 | 100 | host="$1" 101 | response=$(echo "$2" | tr -cd "[:print:]") 102 | response_a=$(echo "$response" | awk '{ print $1 }') 103 | 104 | case $response_a in 105 | "good") 106 | response_b=$(echo "$response" | awk '{ print $2 }') 107 | LOGLINE="(good) [$host] DNS hostname successfully updated to $response_b." 108 | ;; 109 | "nochg") 110 | response_b=$(echo "$response" | awk '{ print $2 }') 111 | LOGLINE="(nochg) [$host] IP address is current: $response_b; no update performed." 112 | ;; 113 | "nohost") 114 | LOGLINE="(nohost) [$host] Hostname supplied does not exist under specified account. Revise config file." 115 | ;; 116 | "badauth") 117 | LOGLINE="(badauth) [$host] Invalid username password combination." 118 | ;; 119 | "badagent") 120 | LOGLINE="(badagent) [$host] Client disabled - No-IP is no longer allowing requests from this update script." 121 | ;; 122 | '!donator') 123 | LOGLINE='(!donator)'" [$host] An update request was sent including a feature that is not available." 124 | ;; 125 | "abuse") 126 | LOGLINE="(abuse) [$host] Username is blocked due to abuse." 127 | ;; 128 | "911") 129 | LOGLINE="(911) [$host] A fatal error on our side such as a database outage. Retry the update in no sooner than 30 minutes." 130 | ;; 131 | "") 132 | LOGLINE="(empty) [$host] No response received from No-IP. This may be due to rate limiting or a server-side problem." 133 | ;; 134 | *) 135 | LOGLINE="(error) [$host] Could not understand the response from No-IP. The DNS update server may be down." 136 | ;; 137 | esac 138 | 139 | return 0 140 | } 141 | 142 | function console_info() { 143 | local msg="$1" 144 | local lvl="$CONSOLE_OUTPUT_LEVEL" 145 | 146 | if [ -z "$lvl" ] || (( lvl < 3 )); then 147 | echo "$msg" 148 | fi 149 | } 150 | 151 | function console_error() { 152 | local msg="$1" 153 | local lvl="$CONSOLE_OUTPUT_LEVEL" 154 | 155 | if [ -z "$lvl" ] || (( lvl < 5 )); then 156 | echo "$msg" >&2 157 | fi 158 | } 159 | 160 | # Defines 161 | 162 | CONFIGFILE="" 163 | NEWIP="" 164 | while getopts 'c:i:' flag; do 165 | case "${flag}" in 166 | c) CONFIGFILE="${OPTARG}" ;; 167 | i) NEWIP="${OPTARG}" ;; 168 | *) usage ;; 169 | esac 170 | done 171 | 172 | if [ -z "$CONFIGFILE" ]; then 173 | CONFIGFILE="$( cd "$( dirname "$0" )" && pwd )/config" 174 | fi 175 | 176 | if [ -e "$CONFIGFILE" ]; then 177 | source "$CONFIGFILE" 178 | else 179 | console_error "Config file not found." 180 | exit 1 181 | fi 182 | 183 | if ! (( CONSOLE_OUTPUT_LEVEL >= 0 && CONSOLE_OUTPUT_LEVEL <= 6 )); then 184 | CONSOLE_OUTPUT_LEVEL=0 185 | fi 186 | 187 | if [ -n "$NEWIP" ] && ! valid_ip "$NEWIP"; then 188 | console_error "Invalid IP address specified." 189 | exit 1 190 | fi 191 | 192 | if [ -z "$USERNAME" ] || [ -z "$PASSWORD" ]; then 193 | console_error "USERNAME or PASSWORD has not been set in the config file." 194 | exit 1 195 | fi 196 | 197 | USERAGENT="Bash No-IP Updater/1.3 $USERNAME" 198 | 199 | if [ ! -d "$LOGDIR" ]; then 200 | if ! mkdir -p "$LOGDIR"; then 201 | console_error "Log directory could not be created or accessed." 202 | exit 1 203 | fi 204 | fi 205 | 206 | LOGFILE=${LOGDIR%/}/noip.log 207 | if [ ! -e "$LOGFILE" ]; then 208 | if ! touch "$LOGFILE"; then 209 | console_error "Log files could not be created. Is the log directory writable?" 210 | exit 1 211 | fi 212 | fi 213 | if [ ! -w "$LOGFILE" ]; then 214 | console_error "Log file not writable." 215 | exit 1 216 | fi 217 | 218 | NOW=$(date +'%s') 219 | LOGDATE="[$(date +'%Y-%m-%d %H:%M:%S')]" 220 | 221 | # Program 222 | 223 | if [ -e "$LOGFILE" ] && tail -n1 "$LOGFILE" | grep -q -m1 '(abuse)'; then 224 | # set -e aborts after this read command unless `|| true` is appended 225 | read -r -d '' CONSOLE_MSG << EOL || true 226 | This account has been flagged for abuse. You need to contact noip.com to resolve 227 | the issue. Once you have confirmed your account is in good standing, remove the 228 | log line containing (abuse) from: 229 | $LOGFILE 230 | Then, re-run this script. 231 | EOL 232 | console_error "$CONSOLE_MSG" 233 | exit 1 234 | fi 235 | 236 | if [ -e "$LOGFILE" ]; then 237 | if NINELINE=$(grep '(911)' "$LOGFILE" | tail -n 1); then 238 | LASTNL=$([[ "$NINELINE" =~ \[([^\]]+)\] ]] && echo "${BASH_REMATCH[1]}") 239 | parse_date "$LASTNL" 240 | if [ $((NOW - PARSED_DATE)) -lt 1800 ]; then 241 | LOGLINE="Response code 911 received less than 30 minutes ago; canceling request." 242 | console_error "$LOGLINE" 243 | echo "$LOGDATE $LOGLINE" >> "$LOGFILE" 244 | exit 1 245 | fi 246 | fi 247 | fi 248 | 249 | if [ "$ROTATE_LOGS" = true ]; then 250 | LOGLENGTH=$(wc -l "$LOGFILE" | awk '{ print $1 }') 251 | if [ $((LOGLENGTH)) -ge 10010 ]; then 252 | BACKUPDATE=$(date +'%Y-%m-%d_%H%M%S') 253 | BACKUPFILE="$LOGFILE-$BACKUPDATE.log" 254 | if touch "$BACKUPFILE"; then 255 | head -10000 "$LOGFILE" > "$BACKUPFILE" 256 | if cmd_exists gzip; then 257 | gzip "$BACKUPFILE" 258 | fi 259 | LASTLINES=$(tail -n +10001 "$LOGFILE") 260 | echo "$LASTLINES" > "$LOGFILE" 261 | console_info "Log file rotated" 262 | else 263 | console_error "Log file could not be rotated" 264 | fi 265 | fi 266 | fi 267 | 268 | USERNAME=$(urlencode "$USERNAME") 269 | PASSWORD=$(urlencode "$PASSWORD") 270 | ENCODED_HOST=$(urlencode "$HOST") 271 | 272 | REQUEST_URL="https://$USERNAME:$PASSWORD@dynupdate.no-ip.com/nic/update?hostname=$ENCODED_HOST" 273 | if [ -n "$NEWIP" ]; then 274 | NEWIP=$(urlencode "$NEWIP") 275 | REQUEST_URL="$REQUEST_URL&myip=$NEWIP" 276 | fi 277 | 278 | RESPONSE=$(http_get "$REQUEST_URL") 279 | OIFS=$IFS 280 | IFS=$'\n' 281 | SPLIT_RESPONSE=( $(echo "$RESPONSE" | grep -o '[0-9a-z!]\+\( [0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\)\?') ) 282 | IFS=',' 283 | SPLIT_HOST=( $HOST ) 284 | IFS=$OIFS 285 | 286 | for index in "${!SPLIT_HOST[@]}"; do 287 | get_logline "${SPLIT_HOST[index]}" "${SPLIT_RESPONSE[index]}" 288 | console_info "$LOGLINE" 289 | echo "$LOGDATE $LOGLINE" >> "$LOGFILE" 290 | done 291 | 292 | exit 0 293 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | ## Bash No-IP Updater 2 | 3 | A bash script to update the IP address of [No-IP](https://www.noip.com/) hostnames. Supports multiple hostname updates and log rotation (see `config_sample`). Interprets [No-IP protocol responses](https://www.noip.com/integrate/response) and follows client guidelines. 4 | 5 | ## Prerequisites 6 | 7 | - `bash` 8 | - `curl` or `wget` 9 | - GNU `coreutils` 10 | - `gzip` (optional, for log rotation) 11 | 12 | ## Usage 13 | 14 | `noipupdater.sh [-c /path/to/config] [-i 123.123.123.123]` 15 | 16 | - `-c` (optional): Path to config file (see `config_sample`). If this parameter is not specified, then the script will look for file `config` in the same directory as the script. 17 | - `-i` (optional): Manually set the IP address that should be assigned to the hostname(s). If this paremter is not specified, the IP address will be auto-detected by No-IP. 18 | 19 | ## Automation 20 | 21 | Include the script in your cron file (`crontab -e`): 22 | 23 | Run script once each day at 5:30am: 24 | `30 5 * * * /path/to/noipupdater.sh` 25 | 26 | Run the script every fifteen minutes: 27 | `*/15 * * * * /path/to/noipupdater.sh` 28 | 29 | ### Notes 30 | 31 | - This is a bash script, so you may need to specify `SHELL=/bin/bash` in crontab. 32 | - `cron` is often configured to send mail when a command outputs to the console. Set configuration option `CONSOLE_OUTPUT_LEVEL` to silence non-error or all console outputs if you want to avoid this mail. 33 | 34 | ## Credits 35 | 36 | Forked from the [Simple Bash No-IP Updater by AntonioCS](https://github.com/AntonioCS/no-ip.com-bash-updater) 37 | 38 | 2013 © Matthew D. Mower 39 | 2012 © AntonioCS 40 | --------------------------------------------------------------------------------