1.Introduction
Le but de cet article est de vous montrer comment configuer une mise à jour dynamique des Dynhosts chez OVH
2.Installation
On installe tout d’abords ddclient
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
sudo nano /etc/ddclient.conf
Configurer le fichier ci-dessous comme bon il vous semble
daemon=600 # check every 600 seconds
syslog=yes # log update msgs to syslog
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
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
syslog=yes # log update msgs to syslog
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
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