Results 1 to 3 of 3

Thread: DDClient ignores conf file ?

  1. #1
    Join Date
    Aug 2020
    Location
    Lyon, France
    Posts
    10

    Question DDClient ignores conf file ?

    Hi all

    I am trying to use DDClient to update the IP of a dynamic DNS subdomain.

    I have installed and configure DDClient in order to consider only my dynamic DNS service provider (infomaniak).
    To do so, I have kept commented out all dynamic DNS service provider in /etc/ddclient.conf and have added mine.
    However, when I run sudo ddclient -query, ddclient seems to go through all providers I have commented out:
    Code:
    > sudo ddclient -query
    
    use=if, if=eth0 address is 192.168.w.y 
    use=if, if=lo address is 127.0.0.1 
    use=if, if=wlan1 address is NOT FOUND 
    use=web, web=dnspark address is NOT FOUND 
    use=web, web=dyndns address is xx.xx.xx.xx 
    use=web, web=loopia address is xx.xx.xx.xx 
    use=web, web=https://ipv4.infomaniak.com/ip.php address is xx.xx.xx.xx
    xx.xx.xx.xx is of course my external IP address.

    My /etc/ddclient.conf is pasted below :
    Code:
    ###################################################################### 
    ##  
    ## Define default global variables with lines like: 
    ##      var=value [, var=value]* 
    ## These values will be used for each following host unless overridden 
    ## with a local variable definition. 
    ## 
    ## Define local variables for one or more hosts with: 
    ##      var=value [, var=value]* host.and.domain[,host2.and.domain...] 
    ## 
    ## Lines can be continued on the following line by ending the line 
    ## with a \ 
    ## 
    ## 
    ## Warning: not all supported routers or dynamic DNS services  
    ##          are mentioned here. 
    ## 
    ###################################################################### 
    # daemon: consider to use /etc/sysconfig/ddclient instead of modifying here 
    # 
    daemon=300                              # check every 300 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=/run/ddclient/ddclient.pid          # record PID in file. 
    #ssl=no                                 # use ssl-support.  Works with 
                                            # ssl-library 
    # postscript=script                     # run script after updating.  The 
                                            # new IP is added as argument. 
    # 
    #use=watchguard-soho,        fw=192.168.111.1:80        # via Watchguard's SOHO FW 
    #use=netopia-r910,           fw=192.168.111.1:80        # via Netopia R910 FW 
    #use=smc-barricade,          fw=192.168.123.254:80      # via SMC's Barricade FW 
    #use=netgear-rt3xx,          fw=192.168.0.1:80          # via Netgear's internet FW 
    #use=linksys,                fw=192.168.1.1:80          # via Linksys's internet FW 
    #use=maxgate-ugate3x00,      fw=192.168.0.1:80          # via MaxGate's UGATE-3x00  FW 
    #use=elsa-lancom-dsl10,      fw=10.0.0.254:80           # via ELSA LanCom DSL/10 DSL Router 
    #use=elsa-lancom-dsl10-ch01, fw=10.0.0.254:80           # via ELSA LanCom DSL/10 DSL Router 
    #use=elsa-lancom-dsl10-ch02, fw=10.0.0.254:80           # via ELSA LanCom DSL/10 DSL Router 
    #use=alcatel-stp,            fw=10.0.0.138:80           # via Alcatel Speed Touch Pro 
    #use=xsense-aero,            fw=192.168.1.1:80          # via Xsense Aero Router 
    #use=allnet-1298,            fw=192.168.1.1:80          # via AllNet 1298 DSL Router 
    #use=3com-oc-remote812,      fw=192.168.0.254:80        # via 3com OfficeConnect Remote 812 
    #use=e-tech,                 fw=192.168.1.1:80          # via E-tech Router 
    #use=cayman-3220h,           fw=192.168.0.1:1080        # via Cayman 3220-H DSL Router 
    # 
    #fw-login=admin,             fw-password=XXXXXX         # FW login and password 
    # 
    ## To obtain an IP address from FW status page (using fw-login, fw-password) 
    #use=fw, fw=192.168.1.254/status.htm, fw-skip='IP Address' # found after IP Address 
    # 
    ## To obtain an IP address from Web status page (using the proxy if defined) 
    ## by default, checkip.dyndns.org is used if you use the dyndns protocol.  
    ## Using use=web is enough to get it working. 
    ## WARNING: set deamon at least to 600 seconds if you use checkip or you could 
    ## get banned from their service. 
    #use=web, web=checkip.dyndns.org/, web-skip='IP Address' # found after IP Address 
    # 
    ###################################################################### 
    # you do not need to define use= if you are using DSL (ppp0) 
    # rc.ddclient is using "use=if, if=ppp0" as default 
    # 
    #use=ip,                     ip=127.0.0.1       # via static IP's 
    #use=if,                     if=eth0            # via interfaces 
    #use=if,                     if=ippp0           # when using ISDN 
    #use=if,                     if=ppp0            # when using DSL 
    #use=if,                     if=tun0            # when using tunnel device 
    #use=web                                        # via web 
    # 
    ###################################################################### 
    #protocol=dyndns2                               # default protocol 
    #proxy=fasthttp.sympatico.ca:80                 # default proxy 
    #server=members.dyndns.org                      # default server 
    #server=members.dyndns.org:8245                 # default server (bypassing proxies) 
    
    #login=your-login                               # default login 
    #password=test                                  # default password 
    #mx=mx.for.your.host                            # default MX 
    #backupmx=yes|no                                # host is primary MX? 
    #wildcard=yes|no                                # add wildcard CNAME? 
    
    ## 
    ## selfhost dynamic addresses 
    ## http://cms.selfhost.de/cgi-bin/selfhost?p=faq&show=113 
    ## 
    # server=carol.selfhost.de,             \ 
    # protocol=dyndns2,                     \ 
    # login=your-selfhost-login,            \ 
    # password=your-selfhost-password       \ 
    # your.selfhost.bz 
    
    ## 
    ## dyndns.org dynamic addresses 
    ## 
    ## (supports variables: wildcard,mx,backupmx) 
    ## 
    # server=members.dyndns.org,            \ 
    # protocol=dyndns2                      \ 
    # your-dynamic-host.dyndns.org 
    
    ## 
    ## dyndns.org static addresses 
    ## 
    ## (supports variables: wildcard,mx,backupmx) 
    ## 
    # static=yes,                           \ 
    # server=members.dyndns.org,            \ 
    # protocol=dyndns2                      \ 
    # your-static-host.dyndns.org 
    
    ## 
    ## 
    ## dyndns.org custom addresses 
    ## 
    ## (supports variables: wildcard,mx,backupmx) 
    ## 
    # custom=yes,                           \ 
    # server=members.dyndns.org,            \ 
    # protocol=dyndns2                      \ 
    # your-domain.top-level,your-other-domain.top-level 
    
    ## 
    ## ZoneEdit (zoneedit.com) 
    ## 
    # server=dynamic.zoneedit.com,          \ 
    # protocol=zoneedit1,                   \ 
    # login=your-zoneedit-login,            \ 
    # password=your-zoneedit-password       \ 
    # your.any.domain,your-2nd.any.dom 
    
    ## 
    ## EasyDNS (easydns.com) 
    ## 
    # server=members.easydns.com,           \ 
    # protocol=easydns,                     \ 
    # login=your-easydns-login,             \ 
    # password=your-easydns-password        \ 
    # your.any.domain,your-2nd.any.domain 
    
    ## 
    ## Hammernode (hn.org) dynamic addresses 
    ## 
    # server=dup.hn.org,                    \ 
    # protocol=hammernode1,                 \ 
    # login=your-hn-login,                  \ 
    # password=your-hn-password             \ 
    # your-hn-host.hn.org,your-2nd-hn-host.hn.org 
    
    ## 
    ## dslreports.com dynamic-host monitoring 
    ## 
    # server=members.dslreports.com         \ 
    # protocol=dslreports1,                 \ 
    # login=dslreports-login,               \ 
    # password=dslreports-password          \ 
    # dslreports-unique-id 
    
    ## 
    ## OrgDNS.org account-configuration 
    ## 
    # use=web, web=members.orgdns.org/nic/ip 
    # server=www.orgdns.org                 \ 
    # protocol=dyndns2                      \ 
    # login=yourLoginName                   \ 
    # password=yourPassword                 \ 
    # yourSubdomain.orgdns.org 
    
    ## 
    ## dnspark.com 
    ## (supports variables: mx, mxpri) 
    ## 
    # use=web, web=ipdetect.dnspark.com, web-skip='Current Address:' 
    # protocol=dnspark,                     \ 
    # server=www.dnspark.com,               \ 
    # your-host.dnspark.com 
    
    ## 
    ## NameCheap (namecheap.com) 
    ## 
    # protocol=namecheap,                           \ 
    # server=dynamicdns.park-your-domain.com,       \ 
    # login=my-namecheap.com-login,                 \ 
    # password=my-namecheap.com-password            \ 
    # fully.qualified.host 
    
    ## 
    ## NearlyFreeSpeech.NET (nearlyfreespeech.net) 
    ## 
    # protocol = nfsn,                      \ 
    # login=member-login,                   \ 
    # password=api-key,                     \ 
    # zone=example.com                      \ 
    # example.com,subdomain.example.com 
    
    ## 
    ## 
    ## Loopia (loopia.se) 
    ## 
    # use=web 
    # web=loopia 
    # protocol=dyndns2 
    # server=dns.loopia.se 
    # script=/XDynDNSServer/XDynDNS.php 
    # login=my-loopia.se-login 
    # password=my-loopia.se-password 
    # my.domain.tld,other.domain.tld 
    
    ## 
    ## 
    ## ChangeIP (changeip.com) 
    ## 
    ## single host update 
    # protocol=changeip,                   \ 
    # login=my-my-changeip.com-login,      \ 
    # password=my-changeip.com-password    \ 
    # myhost.changeip.org 
    
    ## 
    ## DtDNS (www.dtdns.com) 
    ## 
    # protocol=dtdns, 
    # server=www.dtdns.com, 
    # client=ddclient, 
    # password=my-dtdns.com-password 
    # myhost.dtdns.net, otherhost.dtdns.net 
    
    ## 
    ## CloudFlare (www.cloudflare.com) 
    ## 
    #protocol=cloudflare,        \ 
    #zone=domain.tld,            \ 
    #ttl=1,                      \ 
    #login=your-login-email,     \ 
    #password=APIKey             \ 
    #domain.tld,my.domain.tld 
    
    ## 
    ## Google Domains (www.google.com/domains) 
    ## 
    # protocol=googledomains, 
    # login=my-auto-generated-username, 
    # password=my-auto-generated-password 
    # my.domain.tld, otherhost.domain.tld 
    
    ## 
    ## Duckdns (http://www.duckdns.org/) 
    ## 
    #  
    # password=my-auto-generated-password 
    # protocol=duckdns hostwithoutduckdnsorg 
    
    ## 
    ## Freemyip (http://freemyip.com/) 
    ## 
    # 
    # protocol=freemyip, 
    # password=my-token 
    # myhost 
    
    ## 
    ## MyOnlinePortal (http://myonlineportal.net) 
    ##  
    # protocol=dyndns2 
    # ssl=yes 
    # # ipv6=yes # optional 
    # use=web, web=myonlineportal.net/checkip 
    # # use=if, if=eth0     # alternative to use=web 
    # # if-skip=Scope:Link  # alternative to use=web 
    # login=your-myonlineportal-username 
    # password=your-myonlineportal-password 
    # domain.myonlineportal.net 
    
    ## 
    ## nsupdate.info IPV4(https://www.nsupdate.info) 
    ## 
    #protocol=dyndns2 
    #use=web, web=http://ipv4.nsupdate.info/myip 
    #server=ipv4.nsupdate.info 
    #login=domain.nsupdate.info 
    #password='123' 
    #domain.nsupdate.info 
    
    ## 
    ## nsupdate.info IPV6 (https://www.nsupdate.info) 
    ## ddclient releases <= 3.8.1 do not support IPv6 
    ## 
    #protocol=dyndns2 
    #usev6=if, if=eth0 
    #server=ipv6.nsupdate.info 
    #login=domain.nsupdate.info 
    #password='123' 
    #domain.nsupdate.info 
    
    ## 
    ## Yandex.Mail for Domain (domain.yandex.com) 
    ## 
    # protocol=yandex,                      \ 
    # login=domain.tld,                     \ 
    # password=yandex-pdd-token             \ 
    # my.domain.tld,other.domain.tld        \ 
    
    ## DNS Made Easy (https://dnsmadeeasy.com) 
    ## 
    # protocol=dnsmadeeasy, 
    # login=your-account-email-address 
    # password=your-generated-password 
    # your-numeric-record-id-1,your-numeric-record-id-2,... 
    
    ## 
    ## Infomaniak 
    ## 
    ssl=yes 
    use=web, web=https://ipv4.infomaniak.com/ip.php, web-skip='IP:' 
    #use=web 
    #web=http://ipv4.infomaniak.com/ip.php 
    protocol=dyndns2,\ 
    #server=infomaniak.com,\ 
    server=https://infomaniak.com/nic/update,\ 
    login=myid,\ 
    password='mypwd'\ 
    subdomain.my_domain-name
    The service seems to work fine
    Code:
    > systemctl status ddclient 
    
     ddclient.service - A Perl Client Used To Update Dynamic DNS 
       Loaded: loaded (/usr/lib/systemd/system/ddclient.service; enabled; vendor preset: disabled) 
       Active: active (running) since Wed 2020-11-11 14:52:58 CET; 3h 15min ago 
     Main PID: 1485 (ddclient - slee) 
        Tasks: 1 
       CGroup: /system.slice/ddclient.service 
               └─1485 ddclient - sleeping for 280 seconds
    
    I have been pulling my hears for one week and I don't understand what I have missed.

    Anyone to help ?

    Thanks!

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    13,105
    Blog Entries
    2

    Default Re: DDClient ignores conf file ?

    Sometimes apps are really stubborn about not observing commented out entries.

    When I run into these situations,
    I make a backup of the file before changes, rename and store in a different directory than the default,
    Then delete the entries that are to be disabled.

    Works every time...

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  3. #3
    Join Date
    Aug 2020
    Location
    Lyon, France
    Posts
    10

    Default Re: DDClient ignores conf file ?

    Thanks @tsu2 for your tip but it didn't work, sadly.

    sudo ddclient -query still uses unset providers (dyndns, loopia,...) to look for my ip
    eg.
    Code:
    sudo ddclient -query      
    [sudo] Mot de passe de root :  
    use=if, if=eth0 address is 192.168.1.20
    use=if, if=lo address is 127.0.0.1
    use=if, if=wlan1 address is NOT FOUND
    use=web, web=dnspark address is NOT FOUND
    use=web, web=dyndns address is xx.xx.xx.xx
    use=web, web=loopia address is xx.xx.xx.xx
    use=web, web=https://ipv4.infomaniak.com/ip.php address is xx.xx.xx.xx
    

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •