Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: GlitchFreak on August 17, 2006, 09:38:54 AM

Title: DynDns Settings
Post by: GlitchFreak on August 17, 2006, 09:38:54 AM
I tried to setup my dyndns to update my ip but it doesn't update...

my username is mydomain.dyndns.org
my password is the same password i use to login to dyndns.org

I have verified all the above settings...

am I using the correct details?
Title: Re: DynDns Settings
Post by: CharlieBrady on August 17, 2006, 09:40:03 AM
Quote from: "GlitchFreak"
I tried to setup my dyndns to update my ip but it doesn't update...


Bug reports should go to the bug tracker. Search first to see if someone has already reported the same problem.
Title: DynDns Settings
Post by: GlitchFreak on August 17, 2006, 09:46:15 AM
The thing is that it's never worked since 7RC1. Its worked for others so it muct be something I'm doing wrong...
Title: Re: DynDns Settings
Post by: raem on August 17, 2006, 12:04:33 PM
GlitchFreak

> my username is mydomain.dyndns.org

Is that your dyndns account username, because that's what you should be using ?

It works for me OK using dialup.
Title: DynDns Settings
Post by: GlitchFreak on August 17, 2006, 12:45:48 PM
Yes, that is the domain that i registered. but it's not the user name i log onto the site with.
Title: DynDns Settings
Post by: raem on August 17, 2006, 01:14:56 PM
GlitchFreak

> Yes, that is the domain that i registered. but it's not the user name i log onto the site with.

You said above that the domain name was your username.

In the Configure this server screens, you should enter your dyndns account name & password that you use to login to the dyndns site.
Title: DynDns Settings
Post by: GlitchFreak on August 17, 2006, 01:31:15 PM
Ok, but what if I have multiple dyndns domains for different servers. how will it differentiate between them and update the one I want?
Title: DynDns Settings
Post by: raem on August 18, 2006, 04:16:19 AM
GlitchFreak

> Ok, but what if I have multiple dyndns domains for different servers.
> how will it differentiate between them and update the one I want?

Because the main domain name is configured on your server, and dyndns will keep track of that domain, and update external records with your changing dynamic IP, ONLY for that domain only .
Title: DynDns Settings
Post by: GlitchFreak on August 28, 2006, 10:09:16 AM
Ah, the problem is caused by my server name not the same as my dyndns name.

Now, can I add an extra domain as my dyndns name? I don't really want to change my machine name at this stage

Thanks for all the help!!

GF
Title: DynDns Settings
Post by: raem on August 28, 2006, 11:32:52 AM
GlitchFreak

> Now, can I add an extra domain as my dyndns name? I don't really want to change my machine name at this stage

The servers main domain name must be the same as your dyndns domain name if you have a dynamic IP from your ISP. You will have to change your dyndns name to match your server, if  dyndns will allow that.

If you want to have multiple domain names hosted on your server and you are using a dynamic IP, then the dynamic dns updater built in to sme will not work for all those domains. You should use the ddclient contrib to manage the domains instead, search for it. There is a server manager panel to use to configure the domains.
Title: DynDns Settings
Post by: jdmgr on September 03, 2006, 04:53:14 AM
hello!!

i have the same problem i look in message log and i find this
"Connection refused at /sbin/e-smith/dynamic-dns/dyndns line 56"

the i look in dyndns line 56 and "connect(S,$that) || die $!;
"

and all
($ip, $user, $pass, $domain) = @ARGV;

$AF_INET = 2;
$SOCK_STREAM = 1;

$SIG{'INT'} = 'dokill';

sub dokill {
   kill 9,$child if $child;
}

$sockaddr = "S n a4 x8";

(
   chop($ip = /sbin/ifconfig ppp0 | /bin/grep inet | /usr/bin/cut -f2 -d: | /usr/bin/cut -c1-15) &&
   $ip =~ s/\s+//g
) unless $ip;

$user = "username" unless $user;
$pass = "password" unless $pass;
$domain = "dyndns.com" unless $domain;

# Added by JMorrison so that this works properly for dynamic DNS or
# dynamic domain services:

if ($user ne 'postmaster')
{
    $domain = 'dyndns.com';
}

$info = pack("a20", $user) . pack("a20", $pass) . pack("a16", $ip) . pack("a64", $domain);

($name, $aliases, $proto) = getprotobyname('tcp');
($name, $aliases, $port) = getservbyname(50, 'tcp') unless $port =~ /^d+$/;
($name, $aliases, $type, $len, $thisaddr) = gethostbyname(chop($hostname = /bin/hostname));
($name, $aliases, $type, $len, $thataddr) = gethostbyname("dyndns.com");

$this = pack($sockaddr, $AF_INET, 0, $thisaddr);
$that = pack($sockaddr, $AF_INET, 50, $thataddr);

socket(S, $AF_INET, $SOCK_STREAM, $proto) || die $!;
bind(S, $this) || die $!;
connect(S,$that) || die $!;

select(S); $| = 1; select(STDOUT);

if ($child = fork) {
   print "Waiting for routing tables to update...\n";
   sleep 10;
   print S $info;
   sleep 3;
   do dokill();
}
else {
   while (<S>) {
      printf("%s", $_);
   }
   print;
}
"
any help?
Title: DynDns Settings
Post by: CharlieBrady on September 03, 2006, 07:50:08 AM
Quote from: "RayMitchell"

If you want to have multiple domain names hosted on your server and you are using a dynamic IP, then the dynamic dns updater built in to sme will not work for all those domains. You should use the ddclient contrib to manage the domains instead,...


I disagree. You should configure all the additional domains to be CNAMES pointing to the primary domain, which will be updated automatically by the built-in updater. Updating multiple dyndns setups just adds unnecessary complexity.
Title: DynDns Settings
Post by: smallstool on October 22, 2006, 03:49:37 PM
I have the same problem as well!

"/etc/cron.weekly/refresh-ddns:

Connection refused at /sbin/e-smith/dynamic-dns/dyndns line 56."

My username, password and domain at www.dyndns.com

are the same as on the admin screen - does my server name have to be the same as username at www.dyndns.com?

 :cry:
Title: DynDns Settings
Post by: raem on October 23, 2006, 11:24:58 AM
smallstool

Your server name can be anything of your choice.
Your server's main domain name must match the dynamic host domain name you created at dyndns.
Title: DynDns Settings
Post by: CharlieBrady on October 23, 2006, 02:07:31 PM
Quote from: "RayMitchell"

Your server name can be anything of your choice.
Your server's main domain name must match the dynamic host domain name you created at dyndns.


Neither of those settings will have anything to do with "connection refused".

All non-functioning SME server software should be reported via the bug tracker.
Title: DynDns Settings
Post by: smallstool on October 23, 2006, 10:00:43 PM
Quote from: "CharlieBrady"
Quote from: "RayMitchell"

Your server name can be anything of your choice.
Your server's main domain name must match the dynamic host domain name you created at dyndns.


Neither of those settings will have anything to do with "connection refused".

All non-functioning SME server software should be reported via the bug tracker.


Domain name and password matches the dynamic host domain name I created at dyndns - it just does not work - I paid and changed from easydns to dyndns so I could get this to work (so I thought).

This has been posted loads of times on the bug trackers see:

http://bugs.contribs.org/show_bug.cgi?id=1251

http://bugs.contribs.org/show_bug.cgi?id=1236

 :(
Title: DynDns Settings
Post by: CharlieBrady on October 23, 2006, 10:35:35 PM
Quote from: "smallstool"

This has been posted loads of times on the bug trackers see:

http://bugs.contribs.org/show_bug.cgi?id=1251

http://bugs.contribs.org/show_bug.cgi?id=1236


Neither of those says anything about "connection refused". They are different issues.
Title: DynDns Settings
Post by: smallstool on October 23, 2006, 10:40:29 PM
CharlieBrady

Its the same issue!

dyndns setup from the admin panel just does not work!

 :(
Title: DynDns Settings
Post by: CharlieBrady on October 23, 2006, 11:03:23 PM
Quote from: "smallstool"

Its the same issue!

dyndns setup from the admin panel just does not work!


So open a bug report then, providing full details.
Title: DynDns Settings
Post by: jdmgr on October 30, 2006, 02:08:04 PM
try this
login with putty with user admin

and change dyndns to commercial not free

maybe this help
 i dont know why but if you change 2-3 times  commercial to  free and free to commercial then work....
Title: DynDns Settings
Post by: smallstool on October 30, 2006, 10:15:33 PM
Thanks for the suggestion jdmgr I fixed it by installing ddclient:

sme7-ddclient-3.6.7-8.noarch.rpm

Got it from http://smeserver.free.fr - it works a treat!

 :wink:
Title: DynDns Settings
Post by: raem on October 31, 2006, 12:26:16 AM
smallstool

> I fixed it by installing ddclient:

Which is what I suggested in this thread way back on 28 August !

But...., doing that doesn't help Charlie resolve any potential bugs in the code.
If there is a problem with sme server ie something doesn't work as it should, please report a bug, as by not doing so you are only helping to prolong the problem.
Title: DynDns Settings
Post by: zach_flem on January 13, 2007, 12:33:55 AM
hi guys, I am having a similar problem, except my IP address updates at DynDNS but my domain (one24chaffey.ath.cx) doesnt resolve from outside my network!

i have tried hitting my server using just my IP address, but that doesnt work either, maybe I am posting in the wrong topic but i'm not sure what else to do.

I have been using this in-built updater for a few years now on telstra and ncable broadband accounts and i'm only having problems now that i'm with Optus, I have spoken to their tech people who have assured me that they do not block any incomming ports, but that's what it seems like is happening.

any help is appreciated.

Cheers

Zach Fleming
Title: DynDns Settings
Post by: raem on January 13, 2007, 01:30:22 AM
zach_flem

>... i'm only having problems now that i'm with Optus, ...tech people ..
> have assured me that they do not block... ports

If you are using Optus cable, they DO block ports ie port 80 & others.
See the forums at Whirlpool
http://forums.whirlpool.net.au/