Dynamic DNS with ddclient on debian
Dynamic DNS with ddclient on debian for dnsomatic
Installations
root@debian:~#apt-get install ddclient
ddclient configuration
edit /etc/ddclient.conf
# /etc/ddclient.conf
protocol=dyndns2
use=web, web=myip.dnsomatic.com
ssl=yes
server=updates.dnsomatic.com
login=UserName
password='Passwd'
YourNetwork
restart
root@debian:~#/etc/init.d/ddclient restart
Test configuration
root@debian:~#ddclient -query
use=if, if=eth0 address is 10.10.10.10
use=if, if=lo address is 127.0.0.1
use=web, web=dnspark address is 1.2.3.4
use=web, web=dyndns address is 1.2.3.4
use=web, web=loopia address is 1.2.3.4
use=web, web=myip.dnsomatic.com address is 1.2.3.4
Full test configuration
root@debian:~#ddclient -debug -verbose -noquiet
if succces
SUCCESS: updating backup: good: IP address set to 1.2.3.4
if already update
SUCCESS: YourNetwork: skipped: IP address was already set to 1.2.3.4
Run ddclient with a daemon
edit /etc/default/ddclient
run_daemon="true"
daemon_interval="600" # 600s is for check and upate ever 10min
For check status daemon
root@debian:~# service ddclient status
● ddclient.service - LSB: Update dynamic domain name service entries
Loaded: loaded (/etc/init.d/ddclient)
Active: active (running) since Fri 2018-07-27 15:59:39 WIB; 2min 21s ago
Process: 5077 ExecStop=/etc/init.d/ddclient stop (code=exited, status=0/SUCCESS)
Process: 5304 ExecStart=/etc/init.d/ddclient start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/ddclient.service
└─5309 ddclient - sleeping for 460 seconds
Jul 27 15:59:39 dns24 systemd[1]: Starting LSB: Update dynamic domain name service entries...
For force update
root@debian:~#ddclient -force
Installations
root@debian:~#apt-get install ddclient
ddclient configuration
edit /etc/ddclient.conf
# /etc/ddclient.conf
protocol=dyndns2
use=web, web=myip.dnsomatic.com
ssl=yes
server=updates.dnsomatic.com
login=UserName
password='Passwd'
YourNetwork
restart
root@debian:~#/etc/init.d/ddclient restart
Test configuration
root@debian:~#ddclient -query
use=if, if=eth0 address is 10.10.10.10
use=if, if=lo address is 127.0.0.1
use=web, web=dnspark address is 1.2.3.4
use=web, web=dyndns address is 1.2.3.4
use=web, web=loopia address is 1.2.3.4
use=web, web=myip.dnsomatic.com address is 1.2.3.4
Full test configuration
root@debian:~#ddclient -debug -verbose -noquiet
if succces
SUCCESS: updating backup: good: IP address set to 1.2.3.4
if already update
SUCCESS: YourNetwork: skipped: IP address was already set to 1.2.3.4
Run ddclient with a daemon
edit /etc/default/ddclient
run_daemon="true"
daemon_interval="600" # 600s is for check and upate ever 10min
For check status daemon
root@debian:~# service ddclient status
● ddclient.service - LSB: Update dynamic domain name service entries
Loaded: loaded (/etc/init.d/ddclient)
Active: active (running) since Fri 2018-07-27 15:59:39 WIB; 2min 21s ago
Process: 5077 ExecStop=/etc/init.d/ddclient stop (code=exited, status=0/SUCCESS)
Process: 5304 ExecStart=/etc/init.d/ddclient start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/ddclient.service
└─5309 ddclient - sleeping for 460 seconds
Jul 27 15:59:39 dns24 systemd[1]: Starting LSB: Update dynamic domain name service entries...
For force update
root@debian:~#ddclient -force
Komentar
Posting Komentar