Re: [opensuse] ddclient on opensuse 10.3



Joe Morris wrote:
On 03/09/2008 02:00 PM, Jim Flanagan wrote:
My conf file is very simple, just what the dyndns tool sent me back,
nothing more. I'll post that if it is important.

I am behind a router, but I'm not sure that matters.
It does. You need to have use=web uncommented. You may also need
ssl=yes. It has to connect up to dyndns to get the public IP from the
router to update to IP. The IP from the internal LAN from your router
is useless.
It seems to work
when run in command line, so I don't know why running in dameon mode
would not work here.
Do you have it set in /etc/sysconfig/ddclient (or use the Yast module).
I doubt its is the conf file now. Maybe a perl
inconsistency or dependency? I got no errors on install though.

I don't believe it would work at all if that was the problem.

The method I'm havening problems with is running ddclient in daemon mode
using yast>runlevel. To repeat what I said before, if I start ddclient
in yast>runlevel, or in konsole using /etc/init.d/ddclient start, I get
an error saying it failed, but, ddclient does start. At that point there
is a one line error reported in /var/log/messages as follows:

Mar 9 08:10:09 jimmee ddclient[7503]: WARNING: caught SIGTERM; exiting

Now this may or may not be relevant, but I certainly do not understand,
the new PID is different than the one listed in this log. The one listed
in the log is the last pid for ddclient when I stopped it, not the new
one running now. This log entry was created when I freshly started
ddclient, why is it referencing the old pid?

That is point number 1.

Point number 2 is, here is my /etc/ddclient.conf file

-----
## ddclient configuration file
daemon=600 # check every 600 seconds
syslog=yes # log update msgs to syslog
mail-failure=<myemailaddress>t # Mail failed updates to user
pid=/var/run/ddclient.pid # record PID in file.

## Detect IP with our CheckIP server
use=web, web=checkip.dyndns.com/, web-skip='IP Address'

## DynDNS username and password here
login=<myusernameatdyndns.com>
password=##YOUR PASSWORD##

## Default options
protocol=dyndns2
server=members.dyndns.org

## Custom DNS hosts
custom=yes, <mydomain.com>
------

Of course I use my actual <myemailaddress>, <myusernameatdyndns>,
password, and <mydomain.com> in my working file.

Separately, and I guess point number 3, shutting down ddclient, and
running ddclient -daemon=0 -debug -verbose -noquiet in konsole,
creates this log entry..

-----
Mar 9 08:20:07 jimmee ddclient[13631]: CONNECT: checkip.dyndns.com
Mar 9 08:20:07 jimmee ddclient[13631]: CONNECTED: using HTTP
Mar 9 08:20:07 jimmee ddclient[13631]: SENDING: GET / HTTP/1.0
Mar 9 08:20:07 jimmee ddclient[13631]: SENDING: Host: checkip.dyndns.com
Mar 9 08:20:07 jimmee ddclient[13631]: SENDING: User-Agent:
ddclient/3.7.3
Mar 9 08:20:07 jimmee ddclient[13631]: SENDING: Connection: close
Mar 9 08:20:07 jimmee ddclient[13631]: SENDING:
Mar 9 08:20:07 jimmee ddclient[13631]: RECEIVE: HTTP/1.1 200 OK
Mar 9 08:20:07 jimmee ddclient[13631]: RECEIVE: Content-Type: text/html
Mar 9 08:20:07 jimmee ddclient[13631]: RECEIVE: Server:
DynDNS-CheckIP/1.0
Mar 9 08:20:07 jimmee ddclient[13631]: RECEIVE: Connection: close
Mar 9 08:20:07 jimmee ddclient[13631]: RECEIVE: Cache-Control: no-cache
Mar 9 08:20:07 jimmee ddclient[13631]: RECEIVE: Pragma: no-cache
Mar 9 08:20:07 jimmee ddclient[13631]: RECEIVE: Content-Length: 105
Mar 9 08:20:07 jimmee ddclient[13631]: RECEIVE:
Mar 9 08:20:07 jimmee ddclient[13631]: RECEIVE:
<html><head><title>Current IP Check</title></head><body>Current IP
Address: REAL.IP.ADDR.ESS</body></html>
Mar 9 08:20:07 jimmee ddclient[13631]: SUCCESS: <myrealdomain>.com:
skipped: IP address was already set to REAL.IP.ADDR.ESS.
------
Again, <myrealdomain.com> is my real domain, and REAL.IP.ADDR.ESS is my
current ip address (outside addr on my router, not an internal address).
On this manual test, I did not enter my login name or password, it must
be getting that from /etc/ddclient.conf.

So it looks like it is working in command line, but I'm still getting
the sigterm error in daemon mode. Any more pointers most welcome.

Many thanks,

Jim F
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • dynamic dns IP assignment from behind router
    ... I'm trying to get a dynamic dns client working on my home machines. ... router plays into some of my difficulties. ... I've tried and failed with both ddclient and ipcheck, ...
    (Debian-User)
  • Re: FTP site
    ... I am sure that ddclient is NOT going to work if it is placed behind a router. ... No you can make ddclient work from behind a NAT router. ... IT Services Division, Kilburn Building, Oxford Road, Manchester M13 9PL. ...
    (Ubuntu)
  • Re: [SLE] SuSE 10.0 client for DynDNS???
    ... > If your router sits upstream of your linux box then that is the ... I use ddclient for two domains and it works flawlessly. ... Check the headers for your unsubscription address ... Also check the archives at http://lists.suse.com ...
    (SuSE)
  • Re: [SLE] SuSE 10.0 client for DynDNS???
    ... If your router sits upstream of your linux box then that is the ... I use ddclient for two domains and it works flawlessly. ... the perl script didn't properly support the WRT54G router and I needed ...
    (SuSE)
  • Re: [opensuse] ddclient on opensuse 10.3
    ... Im using version 3.7.3-11 on 10.3 and running in daemon mode. ... Are you running ddclient behind a router? ... when run in command line, so I don't know why running in dameon mode ... I doubt its is the conf file now. ...
    (SuSE)