Configurer DynHost(Ovh) avec ddclient
1.IntroductionLe but de cet article est de vous montrer comment configuer une mise à jour dynamique des Dynhosts chez OVH
2.InstallationOn installe tout d’abords ddclient
Citation :
sudo apt-get install ddclient
Après avoir répondu aux questions->(Les réponses que vous donnez ne sont pas importantes car on reconfigure le fichier de configuration de ddlclient
Citation :
sudo nano /etc/ddclient.conf
Configurer le fichier ci-dessous comme bon il vous semble
Citation :
daemon=600                  # check every 600 seconds 
syslog=yes                  # log update msgs to syslog 
# j'ai pas de mail donc on skip
# mail=root                   # mail all msgs to root 
# mail-failure=root           # mail failed update msgs to root 
pid=/var/run/ddclient.pid   # record PID in file. 
cache=/tmp/ddclient.cache   # Cache file 
 
### Select one of these options to determine your IP address 
 
## via hardware interface (if you don't have a router/firewall) 
#use=if, if=eth0 
 
## via our CheckIP server 
use=web, web=checkip.dyndns.com/, web-skip='IP Address' 
 
## from the status page for a linksys router/firewall 
#use=linksys, fw=linksys, fw-login=admin, fw-password=admin 
 
## from a FW status page 
#fw-login=admin, fw-password=XXXXXX 
#use=fw, fw=192.168.1.254/status.htm, fw-skip='IP Address' 
 
 
## Enter your Ovh DynHost username and password here 
 
login=your-login           # your Ovh DynHost username exemple : nomdedomaine.com-ident
password=your-password     # your Ovh DynHost password 
 
 
## This section requires no changes unless you need to set a default proxy server 
## or you need to bypass your proxy server (because it interferes with the updates) 
 
protocol=dyndns2                    # default protocol 
server=www.ovh.com           # default server 
#server=members.dyndns.org:8245     # default server (bypassing proxies) 
#proxy=fasthttp.sympatico.ca:80     # default proxy 
 
 
## Default options for Dynamic/Static DNS Hosts 
 
#mx=             # default MX host (leave undefined by default) 
#backupmx=NO     # MX host is primary MX? (leave undefined by default) 
#wildcard=YES     # add wildcard CNAME? 
 
## Dynamic DNS hosts go here 
votre.domaine.com 
 
## Static DNS hosts go here 
#static=yes, your-static-host.dyndns.org,another-static-host.dyndns.org 
 
## Custom DNS hosts go here 
#custom=yes, your-domain.top-level,your-other-domain.top-level
On verifie
Citation :
sudo ddclient -daemon=0 -debug -verbose -noquiet
Par contre
ddclient utilise un fichier cache en local afin d'éviter de trop solliciter le serveur (certains serveurs limitent la périodicité des mises à jour). On peut alors voir apparaître le message skipped: IP address was already set to xxx.xxx.xxx.xxx Il est alors nécessaire de supprimer le cache local, afin de forcer ddclient à mettre à jour le serveur :
Citation :
sudo rm /var/cache/ddclient/ddclient.cache
au cas ou
Citation :
sudo /etc/init.d/ddclient force-reload
source: 
http://blog.developpez.com/brutus/p6316 ... c_ddclientaide suplementaire: 
http://guide.ovh.com/DynDnset encore plus: 
https://doc.ubuntu-fr.org/ddclientupdate
sudo nano /etc/default/ddclient
Citation :
# Configuration for ddclient scripts
# generated from debconf on lundi 21 décembre 2015, 18:16:47 (UTC+0100)
#
# /etc/default/ddclient
# Set to "true" if ddclient should be run every time DHCP client ('dhclient'
# from package isc-dhcp-client) updates the systems IP address.
run_dhclient="false"
# Set to "true" if ddclient should be run every time a new ppp connection is
# established. This might be useful, if you are using dial-on-demand.
run_ipup="false"
# Set to "true" if ddclient should run in daemon mode
# If this is changed to true, run_ipup and run_dhclient must be set to false.
run_daemon="true"
# Set the time interval between the updates of the dynamic DNS name in seconds.
# This option only takes effect if the ddclient runs in daemon mode.
daemon_interval="300"