Outils pour utilisateurs

Outils du site


linux:installation:noip_automatiser_l_update_dns

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

linux:installation:noip_automatiser_l_update_dns [2022/09/03 17:09] – créée tutospistolinux:installation:noip_automatiser_l_update_dns [2026/06/29 20:00] (Version actuelle) – supprimée tutospisto
Ligne 1: Ligne 1:
-<code bash>nano /etc/init.d/noip-update.sh</code> 
-<code bash noip-update.sh[enable_line_numbers=1, skin=sons-of-obsidian]>#!/bin/sh 
-# 
-# Purpose : 
-#     This script updates the no-ip alias. 
-#     The specifications of the noip update 
-#     protocol can be found at : 
-#     http://www.no-ip.com/integrate/ 
-# 
-# Author : 
-#     Raphael Jolivet 
-# 
-# Last update: 
-#     14-05-2005 
-# Misc params (Set it to what you need) 
-LOGIN=XXXXXXXXXXXXX            # NoIp login 
-PASS=XXXXXXXXXXXX # NoIp pass 
-HOST=XXXX1,XXXX2,XXXX3     # The sites to be updated 
-LOGFILE=/var/logs/noip.txt  # The log file 
-# Log the date 
-echo ""                            > $LOGFILE 
-echo "Updating no-ip DNS entry"    >> $LOGFILE 
-echo "------------------------"    >> $LOGFILE 
-date >> $LOGFILE 
-# Call No-ip Update system 
-result=`curl -s "http://dynupdate.no-ip.com/dns?username=$LOGIN&password=$PASS&hostname=$HOST" 2>&1` 
-# Log the result 
-echo "Result from no-ip: $result" >> $LOGFILE 
-</code> 
  
-<code bash>chmod +x /etc/init.d/noip-update.sh</code> 
-<code bash>crontab -e</code> 
-<code bash>03 */12 * * * /etc/init.d/noip-update.sh</code>