Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: PistonPilot on November 15, 2003, 12:14:49 AM
-
I have a new e-smith box on Verizon DSL and these bast@&@#7 change the ip address almost daily for no reason at all. Well, I think I know the reason, it is to get you to step up to a more expensive line. The built-in function in the server setup that lists dyndns.org doesn't do anything.
Is it working for anyone else?
-
PistonPilot wrote:
>
> The built-in function in the
> server setup that lists dyndns.org doesn't do anything.
>
> Is it working for anyone else?
It didn't work for me, I'm using ddclient - you can get it as a RPM from the dyndns.org web site.
Seem to work just fine.
--
Neal
-
It used to work for me, but I have since moved to zoneedit. However, I know someone running sme5.6 that has problems on occasion.
You could try and run the script manually to see if it gives an error.
To run it type the following at the shell (replace the 4 arguments with valid info)...
/sbin/e-smith/dynamic-dns/dyndns.org x.x.x.x dyn_user dyn_pass server_name.dyndns.org
If the script runs OK then the problem might be an upstream script not triggering when your ip changes.
-
I use zoneedit and it works fine for me, but I did have to enable it in the configuration database (during configuration I selected custom and put my custom script in /sbin/e-smith/dynamic-dns and then noted that the configuration item was still disabled).
To show the values
# /sbin/e-smith/db configuration show DynDNS
DynDNS=service
Account=
Password=
Service=custom
status=disabled
#
If staus is not = enabled
To turn on the service
# /sbin/e-smith/db configuration setprop DynDNS status enabled
# /sbin/e-smith/db configuration show DynDNS
DynDNS=service
Account=
Password=
Service=custom
status=enabled
#
Hope this helps.
Trevor B
-
It didn't work out of the box for me either, but there is a simple fix and it goes like this. I found this doing a little diggine in these forums
a) Set your dyndns server to dyndns.org in the config and enter your username and password etc. (I assume you have already done this).
b) Log in as root and "cd /sbin/e-smith/dynamic-dns"
c) backup your dyndns.org script "cp -p dyndns.org dyndns.org.bak"
c) edit the dyndns.org script, replace the $DOMAIN in the wget command with your domain name (ie. diatechnik.dyndns.org).
d) save and exit the editor
e) restart networking "service network restart"
f) Check the system log to see if your update succeeded
One other thing, make sure you have set diatechnik.dyndns.org as a virtual domain or your machine will not accept any traffic for it.
I know this works, because I applied it to two boxes
Bob
-
Dale,
as per my other response I am using zonedit OK (eveything worked as per 5.6, but just wasn't enabled). My custom script is here:
#!/bin/sh
# Description: Put your description here
#------------------------------------------------------------
# Custom zonedit dynamic DNS update handler.
#------------------------------------------------------------
IPADDR=$1
USERID=$2
PASSWD=$3
DOMAIN=$4
#------------------------------------------------------------
# Your handler starts here.
#------------------------------------------------------------
wget -O - --http-user=$USERID --http-passwd=$PASSWD 'http://dynamic.zoneedit.com/auth/dynamic.html?host='
wget -O - --http-user=$USERID --http-passwd=$PASSWD 'http://dynamic.zoneedit.com/auth/dynamic.html?host=*.'
wget -O - --http-user=$USERID --http-passwd=$PASSWD 'http://dynamic.zoneedit.com/auth/dynamic.html?host=mail.'
#------------------------------------------------------------
# Your handler ends here.
#------------------------------------------------------------
exit 0
Sorry for the wrapping, but the wget's are on a line each.
Trevor B
Dale wrote:
>
> It used to work for me, but I have since moved to zoneedit.
> However, I know someone running sme5.6 that has problems on
> occasion.
>
> You could try and run the script manually to see if it gives
> an error.
> To run it type the following at the shell (replace the 4
> arguments with valid info)...
>
> /sbin/e-smith/dynamic-dns/dyndns.org x.x.x.x dyn_user
> dyn_pass server_name.dyndns.org
>
>
> If the script runs OK then the problem might be an upstream
> script not triggering when your ip changes.
-
Actually, I checked to see if it is running and it was enabled and had all the correct parameters.
It just doesn't work.
TrevorB wrote:
>
> I use zoneedit and it works fine for me, but I did have to
> enable it in the configuration database (during
> configuration I selected custom and put my custom script in
> /sbin/e-smith/dynamic-dns and then noted that the
> configuration item was still disabled).
>
> To show the values
>
> # /sbin/e-smith/db configuration show DynDNS
> DynDNS=service
> Account=
> Password=
> Service=custom
> status=disabled
> #
>
> If staus is not = enabled
> To turn on the service
>
> # /sbin/e-smith/db configuration setprop DynDNS status enabled
> # /sbin/e-smith/db configuration show DynDNS
> DynDNS=service
> Account=
> Password=
> Service=custom
> status=enabled
> #
> Hope this helps.
>
> Trevor B
-
Trevor,
I have a slightly different custom script (shown below) but it works. I use lynx instead of wget, and I add virtual domains after the primary domain.
#!/bin/sh
# Description: www.zoneedit.com (free service)
#------------------------------------------------------------
# Send DNS IP address update to zoneedit.com.
#------------------------------------------------------------
IPADDR=$1
USERID=$2
PASSWD=$3
#add other domains (comma separated) if needed
DOMAIN="$4,virtual_domain1.org"
lynx -source -auth="$USERID:$PASSWD" "http://dynamic.zoneedit.com/auth/dynamic.h
tml?host=$DOMAIN"
-
PistonPilot,
From your last response, are you saying that you can run the script manually and it updates your dyndns info, but it doesn't happen automatically when your dsl/cable modem gets a new ip?
Thanks,
Dale
-
I'm slightly confused. my domain is not a *.dnydns.org domain, it is a fully registered domain name.
myname.com
Bob wrote:
>
> It didn't work out of the box for me either, but there is a
> simple fix and it goes like this. I found this doing a little
> diggine in these forums
>
> a) Set your dyndns server to dyndns.org in the config and
> enter your username and password etc. (I assume you have
> already done this).
> b) Log in as root and "cd /sbin/e-smith/dynamic-dns"
> c) backup your dyndns.org script "cp -p dyndns.org
> dyndns.org.bak"
> c) edit the dyndns.org script, replace the $DOMAIN in the
> wget command with your domain name (ie. diatechnik.dyndns.org).
> d) save and exit the editor
> e) restart networking "service network restart"
> f) Check the system log to see if your update succeeded
>
> One other thing, make sure you have set diatechnik.dyndns.org
> as a virtual domain or your machine will not accept any
> traffic for it.
>
> I know this works, because I applied it to two boxes
>
>
> Bob
-
Never tried it manually. It does not work as it is installed. That is all I know. I did look at the database and all the parameters are fine.
dale wrote:
>
> PistonPilot,
>
> From your last response, are you saying that you can run
> the script manually and it updates your dyndns info, but it
> doesn't happen automatically when your dsl/cable modem gets a
> new ip?
>
> Thanks,
> Dale
-
PistonPilot,
if your domain "myname.com" is registered with dyndns.org or zoneedit.com, it should be the same setup using "custom" dns script. Just substitute your registered domain name where appropriate.
-
"I'm slightly confused. my domain is not a *.dnydns.org domain, it is a fully registered domain name."
If you're using dyndns.org for this, and trying to use the dyndns.org script, that's your problem. dyndns.org, for reasons known only to them, uses different service names for the *.dyndns.org domains than for the full domains.
This can be easily changed. Edit /sbin/e-smith/dynamic-dns/dyndns.org, and change line 20 to begin with
system=custom
instead of "system=dyndns". That should take care of the problem.
-
PistonPilot wrote:
"Never tried it manually. It does not work as it is installed. That is all I know. I did look at the database and all the parameters are fine."
If you try it manually as I suggested in my original reply, we could see if the script or parameters are the problem. Saying it does not work as installed may be acurate, but it is not very helpful is terms of debugging. If Dan's suggestion of changing "system=custom" does not work, please run the script manually and post the results after (hiding user/pass info).
Below is the output when I run the script manually. If you need help accessing a shell or anything else, let me know on or off line, and I'll send you instructions. (Basically enable ssh access from server-manager and install and run putty in ssh mode).
Thanks,
Dale
[root@tux root]# /sbin/e-smith/dynamic-dns/custom 1.2.3.4 myid mypass mydomain.net
[root@tux root]#