free website templates

DDClient Linux Setup Solved


OVERVIEW
 
DDclient updates dynamic DNS entries for accounts on a wide range of dynamic DNS services. This is applicable to a wide range of use cases. It’s commonly used on Non-CGNAT networks where the internet service that the subscriber subscribes to does not include a static public IP address, but rather a dynamic public IP address. A dynamic public IP address randomly changes without notice. DNS entries “A” records at a domain registrar must be pointed to a valid ip address for clients to reach your domain. Thus the need to autoupdate IP addresses when this change occurs. Features include: operating as a daemon, automatic updates, retrying failed updates, and sending update status to syslog and through email.


Configuration
    

First enable "Dynamic DNS" on Namecheap to get a password. After installation of software on your linux OS, next is to configure ddclient to work with your Registrar, for this documetation Namecheap is the Registrar. Using your favorite editor edit /etc/ddclient.conf and make sure these Namecheap settings are applied:

Bash
    
daemon=600
syslog=yes     # log the output to syslog
mail=xxxxx@xxxx.com    # send email notifications to root
mail-failure=xxxxx@xxxxx.com   # send email when failed
ssl=yes
use=web, web=api.ipify.org
protocol=namecheap
server=dynamicdns.park-your-domain.com
login=Your_Domain.com
password=password that was generated by namecheap
@

Copied to clipboard
 
Verify configured set up
Bash
    sudo ddclient -daemon=0 -verbose
Copied to clipboard
You should see something like:
CONNECT: api.ipify.org
CONNECTED: using SSL
SENDING: GET / HTTP/1.1
SENDING: Host: api.ipify.org
SENDING: User-Agent: ddclient/3.10.0
SENDING: Connection: close
SENDING:
RECEIVE: HTTP/1.1 200 OK
RECEIVE: Date: Sun, 01 Mar 2021 13:24:12 GMT
RECEIVE: Content-Type: text/plain
RECEIVE: Content-Length: 12
RECEIVE: Connection: close
RECEIVE: Server: cloudflare
RECEIVE: Vary: Origin
RECEIVE: cf-cache-status: DYNAMIC
RECEIVE: CF-RAY: 9d587b09af6374c0-MIA
RECEIVE:
RECEIVE: 75.70.47.1
SUCCESS: @: skipped: IP address was already set to 75.70.47.1.
 
Running ddclient as a service
 
In order to get ddclient to start on system boot, you need to run it as a systemd service:
Bash
    sudo systemctl enable ddclient.service
    sudo systemctl start ddclient.service
    
Copied to clipboard



CONTACT FORM

© Copyright 2021 Starforce.cyou - All Rights Reserved