View previous topic :: View next topic |
Author |
Message |
Cabadam n00b
Joined: 15 May 2004 Posts: 11
|
Posted: Wed May 26, 2004 7:34 pm Post subject: Dyndns.org account - ddclient problems |
|
|
I used emerge to get the ddclient program and setup my hostnames, etc in the configuration. My problem comes from making it run. During the emerge, it placed its script into the /etc/init.d/ directory, and I "rc-update add ddclient default" ran as expected.
However, when I tell it to start:
/etc/init.d/ddclient start
I do not get the normal output telling me that it was started successfully. Instead, after a short pause, I go straight back to the commandline with no output at all. However - it DID go update my IP as I can now correctly ping my hostname. But it seems like it is not running in the backgroudn as it is supposed to. After some time, when my IP has changed, it does not update.
What have I done wrong? How can I get this to run continually in the background? _________________ Adam Clauss
cabadam@tamu.edu |
|
Back to top |
|
|
Toris n00b
Joined: 22 Mar 2004 Posts: 58
|
Posted: Wed May 26, 2004 8:00 pm Post subject: |
|
|
Firstly, check your update variable in /etc/ddclient/ddclient.conf, daemon=???, where ??? is the amount of seconds between each time it checks your IP.
You mention it works correctly, so it's detecting your IP correctly, so I won't suggest changing the "use=web" etc.. variable.
If you want to check if the process is running, type:
ps aux | grep ddclient
You should see something like:
root 27389 0.3 1.6 5748 4260 pts/3 S 20:56 0:00 /usr/bin/perl -w /usr/sbin/ddclient
If you see that, it's most likely a problem with your configuration, if not the service hasn't started correctly. |
|
Back to top |
|
|
BCC n00b
Joined: 28 Apr 2004 Posts: 51
|
Posted: Wed May 26, 2004 11:58 pm Post subject: |
|
|
Hi,
On my box, ddclient is not started as a daemon (it is not running in the background), IMHO it must be started by some scripts each time you get a new IP address.
Maybe you could try to add the following lines in your /etc/ppp/ip-up file :
Code: | #!/bin/sh
/usr/sbin/ddclient |
Hope this helps |
|
Back to top |
|
|
Cabadam n00b
Joined: 15 May 2004 Posts: 11
|
Posted: Thu May 27, 2004 1:19 am Post subject: |
|
|
Toris:
OK, ps aux | grep ddclient gave:
root 7867 0.1 0.8 5748 4232 pts/0 S 20:18 0:00 ddclient - sleeping for 290 seconds
So, it at least *thinks* it is there running... but for some reason it just isn't actually doing it.
daemon=300 in my conf file.
BCC:
Unfortunately I don't think that will work here - the gentoo box has no way of knowing when its IP address changes because it is behind a Linksys router. The gentoo server just has a static IP address. _________________ Adam Clauss
cabadam@tamu.edu |
|
Back to top |
|
|
BCC n00b
Joined: 28 Apr 2004 Posts: 51
|
Posted: Thu May 27, 2004 10:37 am Post subject: |
|
|
ok, your gentoo box has no way to know when your IP changed.
You mention your ddclient is running as a daemon, with sleeping time 300, and you mention it correctly updates your dyndns record when you start it manually, so it should work
Maybe an obvious question, but are you _sure_ it correctly updates your dyndns record ? You mention a 'ping' test, could you try an nslookup test instead ?
nslookup yourdnsname.dyndns.org
Does the above command return you the correct IP address assigned to your router ?
If it does, then no clue, could you post your /etc/ddclient/ddclient.conf file ? (minus the password)
If it does not, then you could make a copy of this file and then play with the 'use=...' lines of it, maybe try the 'use=linksys, ...' configuration options.
Sorry if this is for no help, but it may be worth a double check. |
|
Back to top |
|
|
Cabadam n00b
Joined: 15 May 2004 Posts: 11
|
Posted: Thu May 27, 2004 11:41 am Post subject: |
|
|
nslookup returned the correct IP as well (and double checked against www.whatismyip.org just to be completely sure I wasn't doing something stupid there).
ddclient.conf follows
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 \
##
######################################################################
daemon=300 # check every 300 seconds
syslog=yes # log update msgs to syslog
mail=root # mail update msgs to root
pid=/var/run/ddclient.pid # record PID in file.
#
#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
#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)
#use=web, web=checkip.dyndns.org/, web-skip='IP Address' # found after IP Address
#
#use=ip, ip=127.0.0.1 # via static IP's
#use=if, if=eth0 # via interfaces
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=---- # default login
password=---- # default password
#mx=mx.for.your.host # default MX
#backupmx=yes|no # host is primary MX?
wildcard=yes # add wildcard CNAME?
cabadam.homeip.net
##
## 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=www.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
|
_________________ Adam Clauss
cabadam@tamu.edu |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|