LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-21-2018, 11:06 AM   #1
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
whats wrong with ddclient ?


Looks like ddclient is not updating the DNS server unless I issue a manual "ddclient -force" command.

In the screen capture below, you can see that the current external IP is 189.47.93.111 and the previous one was 200.148.49.246

By the ddclient cache file, I think it detected the new IP, but, the dns server 208.76.61.3 still answer with the previous one, until a "ddclient -force" is issued.

What is wrong in my config file ?
Why ddclient is not updating the dns server right away but only after a force command ?
What I have to do the get the dns server updated at boot time without a manual "ddclient -force" commmand ?

Please, note that machine is online about 34min. No updates commands of any kind were issue until them, except the ddclient start at boot time, so, there is not any kinf of abuse on dns server that can cause an update block.

Code:
root@hahasiah:~# uptime
 12:28:31 up 34 min,  4 users,  load average: 0,16, 0,17, 0,26
root@hahasiah:~# systemctl status ddclient.service 
● ddclient.service - LSB: Update dynamic domain name service entries
   Loaded: loaded (/etc/init.d/ddclient; generated)
   Active: active (running) since Mon 2018-05-21 12:27:20 -03; 1min 29s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 8335 ExecStop=/etc/init.d/ddclient stop (code=exited, status=0/SUCCESS)
  Process: 8341 ExecStart=/etc/init.d/ddclient start (code=exited, status=0/SUCCESS)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/ddclient.service
           └─8348 ddclient - connecting to checkip.dyndns.com port 80

mai 21 12:27:20 hahasiah systemd[1]: Starting LSB: Update dynamic domain name service entries...
mai 21 12:27:20 hahasiah systemd[1]: Started LSB: Update dynamic domain name service entries.
root@hahasiah:~# systemctl restart ddclient.service 
root@hahasiah:~# dig @208.76.61.3 +short rozsas.homelinux.net
200.148.49.246
root@hahasiah:~# cat /var/cache/ddclient/ddclient.cache 
## ddclient-3.8.3
## last updated at Sat May 19 10:25:54 2018 (1526736354)
atime=0,backupmx=0,custom=0,host=rozsas.homelinux.net,ip=189.47.93.111,mtime=1526736245,mx=,script=/nic/update,static=0,status=good,warned-min-error-interval=0,warned-min-interval=0,wildcard=0,wtime=30 rozsas.homelinux.net
root@hahasiah:~# ddclient -force
SUCCESS:  updating rozsas.homelinux.net: good: IP address set to 189.47.93.111
root@hahasiah:~# dig @208.76.61.3 +short rozsas.homelinux.net
189.47.93.111
The ddclient configuration is:
Code:
root@hahasiah:~# cat /etc/ddclient.conf 
# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf

daemon=16m
protocol=dyndns2
use=web, web=checkip.dyndns.com, web-skip='IP Address'
server=members.dyndns.org
login= #mylogin
password='#mypassword'
rozsas.homelinux.net
 
Old 05-22-2018, 04:15 AM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,307
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Your configuration file shows you are set to update DDNS every 16 minutes. However, that should also happen first at boot time. Which distro are you on, including version? There might be some information in the relevant logs, but those vary a little per distro.

You could also try running ddclient directly and see what it complains about, but it would be best to check the logs first.

Code:
systemctl stop ddclient.service 
ddclient -foreground -file /etc/ddclient.conf
Or you can try via the systemV init scripts that systemd is calling. That should give some data as well.

Code:
systemctl stop ddclient.service 
/etc/init.d/ddclient start
 
Old 05-22-2018, 10:24 AM   #3
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499

Original Poster
Blog Entries: 2

Rep: Reputation: 68
Quote:
Originally Posted by Turbocapitalist View Post
Your configuration file shows you are set to update DDNS every 16 minutes. However, that should also happen first at boot time. Which distro are you on, including version? There might be some information in the relevant logs, but those vary a little per distro.
I am running Ubuntu 18.04, installed from zero, it was not an update over the previous version.

I've tried to run in foreground as you suggested. No warnings, no errors, nothing. Just the blinking cursor in the next line.
I left it running for about 40 min in foreground before I've interrupted it.

Code:
root@hahasiah:~# dig @208.76.61.3 +short rozsas.homelinux.net
191.254.167.229
root@hahasiah:~# cat /var/cache/ddclient/ddclient.cache 
## ddclient-3.8.3
## last updated at Mon May 21 13:29:04 2018 (1526920144)
atime=0,backupmx=0,custom=0,host=rozsas.homelinux.net,ip=189.47.93.111,mtime=1526916557,mx=,script=/nic/update,static=0,status=,warned-min-error-interval=0,warned-min-interval=0,wildcard=0,wtime=30 rozsas.homelinux.net
root@hahasiah:~# systemctl stop ddclient.service 
root@hahasiah:~# ddclient -foreground -file /etc/ddclient.conf 
^C
root@hahasiah:~# dig @208.76.61.3 +short rozsas.homelinux.net
191.254.167.229
root@hahasiah:~# ddclient -force
SUCCESS:  updating rozsas.homelinux.net: good: IP address set to 189.47.93.111
root@hahasiah:~# dig @208.76.61.3 +short rozsas.homelinux.net
189.47.93.111
root@hahasiah:~#
As you can see, the cache already has the new IP but not the DNS server (208.76.61.3).
Immediately after I ran "ddclient -force", the dns server shows the new, updated IP.
 
  


Reply

Tags
ddclient



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is this, whats wrong w/ me? colinstu General 11 12-19-2006 06:50 AM
whats wrong with krnel 2.6.8.1 masand Linux - Software 19 08-24-2004 01:13 PM
Whats wrong with this script??? Sammy2ooo Linux - Networking 2 08-24-2004 06:20 AM
Whats wrong with my network? erik_wout_ew2 Linux - Networking 13 11-13-2003 10:50 AM
Whats wrong with this? OlRoy Programming 2 05-28-2003 01:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration