Page 1 of 1

DDNS configuration

Posted: 2023 May 03, 20:51
by Mihai
Install ddclient

Code: Select all

[root @ centos ~] yum install ddclient
Configure ddclient

Code: Select all

[root @ centos ~] nano /etc/ddclient.conf
daemon=300 # check every 300 seconds
syslog=yes # log update msgs to syslog
mail-failure=e-mail-ul-tau @ domeniul # mail failed update msgs to root
pid=/var/run/ddclient/ddclient.pid # record PID in file.
ssl=yes # use ssl-support. Works with ssl-library
use=if, if=ppp0 # via interfaces
use=web # via web
protocol=dyndns2 # default protocol
server=members.dyndns.org # default server
login=login-user-name # default login
password=user-password # default password
domeniul-tau-ddns
Start ddclient service

Code: Select all

[root @ centos ~] /etc/init.d/ddclient start
or

Code: Select all

[root @ centos ~] service ddclient start
Add ddclient to startup

Code: Select all

[root @ centos ~] chkconfig ddclient on
To force ddclient to sync execute the following command

Code: Select all

[root @ centos ~] ddclient --force
SUCCESS: updating my.domain.tld: good: IP address set to 123.132.213.231