Jump to content

ddclient settings


Gowator
 Share

Recommended Posts

I recently moved my Wifi router to the frontline and my SME server to a DMZ behind it.

 

The sme server updated my dyndns.org automatically ....

 

now I have set another PC to run the client using the web protocol (to find its IP) ..

 

it works fine from the CLI with -nodaemon and verbose

 

and I created an init.d script but its sleeping and not updating../.

 

what am I doing stupid....

 

fire away...I know Im being dumb here ....

Link to comment
Share on other sites

[root@shuttle init.d]# more ddclient

#!/bin/sh

#

# ddclient      This shell script takes care of starting and stopping

#              ddclient.

#

# chkconfig: 2345 65 35

# description: ddclient provides support for updating dynamic DNS services.

 

[ -f /etc/ddclient.conf ] || exit 0

 

. /etc/rc.d/init.d/functions

 

# See how we were called.

case "$1" in

  start)

        # Start daemons.

        echo -n "Starting ddclient: "

        touch /var/lock/subsys/ddclient

        daemon ddclient -daemon 300

        echo

        ;;

  stop)

        # Stop daemons.

        echo -n "Shutting down ddclient: "

        killproc ddclient

        echo

        rm -f /var/lock/subsys/ddclient

        ;;

  restart)

        $0 stop

        $0 start

        ;;

  status)

        status ddclient

        ;;

  *)

        echo "Usage: ddclient {start|stop|restart|status}"

        exit 1

esac

 

exit 0

[root@shuttle init.d]#

 

and

 

[root@shuttle init.d]# more /etc/ddclient.conf

 

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=/var/run/ddclient.pid # record PID in file.

#

 

 

use=web # via web

 

login=xxxxxx # default login

password=xxxxxxxxxxx # default password

#mx=mx.for.your.host # default MX

#backupmx=yes|no # host is primary MX?

#wildcard=yes|no # add wildcard CNAME?

 

server=members.dyndns.org, \

protocol=dyndns2 \

lepeanuts.homelinux.com

Link to comment
Share on other sites

I think it's ddclient -daemon, not dameon ddclient -daemon

Not sure it's your problem though.

 

can you see the start message from the init.d script? anything in syslog? do you see the service running? (using KDE system guard, or mdk control center, or I guess ps)

 

I think there is also a verbose option, I think it's called -noquiet but you may have to look it up in the man page, I haven't use ddclient in a while. There may also be a -debug switch.

Link to comment
Share on other sites

hmm I set -noquiet....

everything works with --nodaemon so perhaps the prob is the -daemon ?

 

the start script is a bit of a hack...

ps shows it working but sleeping ... ??

problem is the nodeamon verbose works and sets the dnsrecords which get changed every 24hrs or so by my ISP so i keep thinking its fixed ... but then 24 hrs later its not LOL

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...