Skip to content

通过知识获得解放,通过技术获得自由

Menu
  • 专题目录
  • 液压相关
    • 液压技术
    • 液压相邻技术
    • 液压应用
  • 计算机相关
    • 计算机和软件
    • 网络和网站技术
  • 哲学
  • 关于本站
Menu

centos8安装ddclient3.9[0]

Posted on 2023年11月14日2025年5月6日 by

rpm软件包下载地址:https://pkgs.org

项目地址:https://github.com/ddclient/ddclient

当前支持的DDNS服务商如下:

Dynamic DNS services currently supported include:

    DynDNS.com  - See http://www.dyndns.com for details on obtaining a free account.
    Hammernode  - See http://www.hn.org for details on obtaining a free account.
    Zoneedit    - See http://www.zoneedit.com for details.
    EasyDNS     - See http://www.easydns.com for details.
    NameCheap   - See http://www.namecheap.com for details
    ConCont     - See http://www.dydns.za.net for details
    DnsPark     - See http://www.dnspark.com for details
    DslReports  - See http://www.dslreports.com for details
    Sitelutions - See http://www.sitelutions.com for details
    Loopia      - See http://www.loopia.se for details
    Noip        - See http://www.noip.com/ for details
    Freedns     - See http://freedns.afraid.org/ for details
    ChangeIP    - See http://www.changeip.com/ for details
    dtdns       - See http://www.dtdns.com/ for details
    nsupdate    - See nsupdate(1) and ddns-confgen(8) for details
    CloudFlare  - See https://www.cloudflare.com/ for details
    Google      - See http://www.google.com/domains for details
    Duckdns     - See https://duckdns.org/ for details
    Freemyip    - See https://freemyip.com for details
    woima.fi    - See https://woima.fi/ for details
    Yandex      - See https://domain.yandex.com/ for details
    DNS Made Easy - See https://dnsmadeeasy.com/ for details
    DonDominio  - See https://www.dondominio.com for details
    NearlyFreeSpeech.net - See https://www.nearlyfreespeech.net/services/dns for details

前置条件:

- Perl 5.014 or later
  - `Data::Validate::IP` perl library
  - `IO::Socket::SSL` perl library for ssl-support
  - `JSON::PP` perl library for JSON support
  - `IO::Socket:INET6` perl library for ipv6-support

安装yum 源

yum install epel-release
yum update

 

  • namecheap设置

  • yum安装
yum install perl perl-Data-Validate-IP  perl-IO-Socket-SSL  perl-JSON-PPperl-IO-Socket-INET6
yum search ddclient

显示库中有软件包

yum install ddclient
  • 显示缺失

  • 安装yum install perl-Digest-SHA,显示没有安装包

在网站搜索

https://pkgs.org/download/perl(Digest::SHA1)

采用rpm安装

wget http://mirror.centos.org/centos/8/PowerTools/x86_64/os/Packages/perl-Digest-SHA1-2.13-23.el8.x86_64.rpm

rpm -Uvh perl-Digest-SHA1-2.13-23.el8.x86_64.rpm
  • 再次安装ddclient

下载地址:https://centos.pkgs.org/8/epel-x86_64/ddclient-3.9.1-1.el8.noarch.rpm.html

wget https://download-ib01.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/d/ddclient-3.9.1-1.el8.noarch.rpm

rpm -Uvh ddclient-3.9.1-1.el8.noarch.rpm
  • 配置ddclient配置文件
nano /etc/ddclient.conf

默认的配置如下:

namecheap的DDNS

修改如下:ddclient

## NameCheap (namecheap.com)
##
use=web, web=dynamicdns.park-your-domain.com/getip
protocol=namecheap,                             \
server=dynamicdns.park-your-domain.com, \
login=soda101.xyz,                      \
password=cd3f855eae1c40d9a4c0558037ee66ba               \
kodtt
# fully.qualified.host
  • 单次启动测试
ddclient -daemon=0 -debug -verbose -noquiet

  • 启动ddclient服务
systemctl restart ddclient
systemctl status ddclient
systemctl enable ddclient.service
  • ping测试

  • 采用snapd安装
sudo yum install epel-release
sudo yum install snapd
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap

常见错误的处理

cannot touch '/var/cache/ddclient/ddclient.cache': Permission denied

输入

chown ddclient /var/cache/ddclient/ddclient.cache
chgrp ddclient /var/cache/ddclient/ddclient.cache

 

参考资料:

  1. https://www.namecheap.com/support/knowledgebase/article.aspx/583/11/how-do-i-configure-ddclient/
  2. https://mgw.dumatics.com/ddclient-on-fedora-2/
  3. https://www.namecheap.com/support/knowledgebase/article.aspx/36/11/how-do-i-start-using-dynamic-dns/
  4. https://blog.csdn.net/frank_good/article/details/71469083
  5. https://snapcraft.io/install/ddclient-snap/centos
  6. https://deviant.engineer/2017/11/ddclient-centos7-namecheap/

欢迎回来

希望本站对你有所帮助!

如有疑问请联系info@fanlog.org
2023 年 11 月
一二三四五六日
 12345
6789101112
13141516171819
20212223242526
27282930 
« 6 月    

AI辅助 (17)

© 2025 | Powered by Superbs Personal Blog theme
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT