Koozali.org: home of the SME Server

Is Dynamic DNS service working out of the box or not a bit confused

Offline steve288

  • *
  • 336
  • +0/-0
I have installed new hardware on a server and installed 7.51 about a month ago. Before I changed the hardware (maybe earler version 7) I just used the "Select dynamic DNS service" feature in the shell gui in the past and it seemed to work.

However unless i have it set up wrong, (a possibiility ) I'm not sure its working now. I have read several posts regarding this kind of problem and some seem to say this does not work any more. (Btw I have a free account at dyndns.)

Other say you MUST download software to get it to work.

the current configuration setting that Im using is
First screen you enter your account name e.g DogFace1
Then the Password in the second screen.
Is that right or am I wrong?? Sadly I wiped away the old server before looking at it to see how I set it up.

My free dyndns account has two domains in it. eg hello.dyndns.info and goodbye.dyndns.info.
Im confused how in the past, the sme server know which dyndns name to use. eg hello.dyndns.info or goodby.dyndns.info. I also saw comments that if you needed two domains then you had to use the software, HOWEVER, I though this was only if the SME server needed two domain.  Not if there were two names in the dyndsn account.
 concerned.

Finally I tried running (see below the command and errors)
But got some errors. Again I see that there are some posts regarding this particularly in the bug reports and am sure I have over looked the answer, and cant find it. There seems to be alot of info and Im confused.

My questions then are.
1. Can i use ddns out of the box? or does that not work. I expect no fix as version 8 is out. Just like to know, I prefer this solution. Should I delete a dyndns address from dyndns eg hello.dyndns.info ??? Or just not try cause it doesnt work .

2. If I have to use a contrib which should I use that works? or how should I deal with the problems I have below. I dont think I have installed the .fr edition that is mentioned that needs to be uninstalled, as mentioned in several posts.

As always
Regards

[root@server ~]# yum --enablerepo=smedev install sme7-ddclient
Loading "installonlyn" plugin
Loading "smeserver" plugin
Loading "protect-packages" plugin
Loading "fastestmirror" plugin
Setting up Install Process
Setting up repositories
smedev                    100% |=========================| 2.3 kB    00:00
smeaddons                 100% |=========================| 2.3 kB    00:00
smeextras                 100% |=========================| 2.3 kB    00:00
smeos                     100% |=========================| 2.3 kB    00:00
smeupdates                100% |=========================| 2.3 kB    00:00
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
primary.xml.gz            100% |=========================|  41 kB    00:00
smedev    : ################################################## 138/138
http://distro.ibiblio.org/pub/linux/distributions/smeserver/releases/7/smeaddons                               /i386/repodata/primary.xml.gz: [Errno 14] HTTP Error 403: Forbidden
Trying other mirror.
primary.xml.gz            100% |=========================|  84 kB    00:00
http://mirror.pialasse.com/releases/7/smeaddons/i386/repodata/primary.xml.gz: [E                               rrno -3] Error performing checksum
Trying other mirror.
primary.xml.gz            100% |=========================|  84 kB    00:01
http://mirror.ovh.ifec.net/releases/7/smeaddons/i386/repodata/primary.xml.gz: [E                               rrno -3] Error performing checksum
Trying other mirror.
primary.xml.gz            100% |=========================|  84 kB    00:00
http://mirror.chiropratique.org/releases/7/smeaddons/i386/repodata/primary.xml.g                               z: [Errno -3] Error performing checksum
Trying other mirror.
primary.xml.gz            100% |=========================|  92 kB    00:00
http://aubrac-medical.fr/releases/7/smeaddons/i386/repodata/primary.xml.gz: [Err                               no -3] Error performing checksum
Trying other mirror.
primary.xml.gz            100% |=========================|  84 kB    00:00
http://mirror.absolutnet.de/releases/7/smeaddons/i386/repodata/primary.xml.gz: [                               Errno -3] Error performing checksum
Trying other mirror.
primary.xml.gz            100% |=========================|  84 kB    00:01
http://mirror.hakkers.com/releases/7/smeaddons/i386/repodata/primary.xml.gz: [Er                               rno -3] Error performing checksum
Trying other mirror.
primary.xml.gz            100% |=========================|  84 kB    00:01
http://sme-mirror.firewall-services.com/releases/7/smeaddons/i386/repodata/prima                               ry.xml.gz: [Errno -3] Error performing checksum
Trying other mirror.
primary.xml.gz            100% |=========================|  84 kB    00:00
http://mirror.drogisterij-markt.nl/sme/releases/7/smeaddons/i386/repodata/primar                               y.xml.gz: [Errno -3] Error performing checksum
Trying other mirror.
primary.xml.gz            100% |=========================|  84 kB    00:00
http://ftp.nluug.nl/os/Linux/distr/smeserver/releases/7/smeaddons/i386/repodata/                               primary.xml.gz: [Errno -3] Error performing checksum
Trying other mirror.
primary.xml.gz            100% |=========================|  84 kB    00:00
http://ftp.surfnet.nl/ftp/pub/os/Linux/distr/smeserver/releases/7/smeaddons/i386                               /repodata/primary.xml.gz: [Errno -3] Error performing checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from smeaddons: [Errno 256] No more mirr                               ors to try.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Is Dynamic DNS service working out of the box or not a bit confused
« Reply #1 on: July 11, 2012, 09:47:30 PM »
Quote
1. Can i use ddns out of the box? or does that not work.

It should work out of the box. If it doesn't, then create a bug report, and the problem will be (hopefully) diagnosed and fixed.

Offline mrkiwi

  • *
  • 12
  • +0/-0
Re: Is Dynamic DNS service working out of the box or not a bit confused
« Reply #2 on: July 12, 2012, 12:32:39 AM »
Other say you MUST download software to get it to work.

I have always used this;
Code: [Select]
cd /tmp
wget http://something/ddclient-3.7.3.tar.gz
tar xvzf ddclient-3.7.3.tar.gz
cp ddclient-3.7.3/ddclient /usr/sbin
mkdir /etc/ddclient
cfg=/etc/ddclient/ddclient.conf
echo "daemon=180">$cfg
echo "syslog=yes">>$cfg
echo "mail=root">>$cfg
echo "mail-failure=root">>$cfg
echo "pid=/var/run/ddclient.pid">>$cfg
echo "ssl=no">>$cfg
echo "use=web, web=checkip.dyndns.org/, web-skip='IP Address'">>$cfg
echo "login=kxxxxxx">>$cfg
echo "password=dxxxxxx">>$cfg
echo "myhostname.dyndns.org">>$cfg
cp ddclient-3.7.3/sample-etc_rc.d_init.d_ddclient.redhat /etc/rc.d/init.d/ddclient
/sbin/chkconfig --add ddclient
service ddclient start 

YMMV and i expect this is probably a contrib by now, but if you have to config dd by hand this may help you.

MrKiwi.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Is Dynamic DNS service working out of the box or not a bit confused
« Reply #3 on: July 12, 2012, 05:04:13 AM »
Other say you MUST download software to get it to work.

I doubt that those know what they are talking about. How many unresolved bugs concerning dynamic DNS do you see in the bug tracker?

It is true that not every dynamic DNS supplier is catered for in the built in dyn DNS capability, but adding support for additional dynamic DNS suppliers is easy. It is also true that the built in support only supports one domain name. But providing support for multiple domains is easyby  using CNAMEs in DNS.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Is Dynamic DNS service working out of the box or not a bit confused
« Reply #4 on: July 12, 2012, 05:06:38 AM »
steve288

The built in default dynamic dns client (ddns) works well on sme for the services it supports, and the way you set it up is correct. The account name you use must have the required domain host setup eg at dyndns.

You must enter the main domain name of the server (at the beginning of the Configure this server screens), as hello.dyndns.info (or whichever is your main domain).

If you want additional domain names hosted, then you can configure external DNS records to point the additional domain names ie goodby.dyndns.info at the record for hello.dyndns.info, I think it points to the Cname entry
As the dynamic IP changes, sme server ddns client will update the dyndns records and the second domain will follow & resolve to the new IP now being used for the first domain.

If you cannot adjust external DNS records in that way (I'm not sure if you can do that with free dyndns DNS records, other Domain Hosts do provide this sort of DNS record capability), and you wish to host more than one domain on sme server using a dynamic IP service (eg dyndns) then that's when you need to install the ddclient contrib.
In that case you have 2 options
1) Leave the main domain configured in the sme ddns client so sme server will update that, and then add additional domains in the ddclient server manager interface so ddclient updates those additional domains/dynamic IP records.
or
2) Do not enter any details in the sme server ddns client, and configure both (or all) domains in the ddclient server manager panel. You should still configure sme server with the main domain name in the first screen of Configure this server.
 
sme7-ddclient is not hosted on sme server repos
Try
yum install --enablerepo=smecontribs smeserver-ddclient

http://wiki.contribs.org/Ddclient
« Last Edit: July 12, 2012, 05:08:59 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline steve288

  • *
  • 336
  • +0/-0
Re: Is Dynamic DNS service working out of the box or not a bit confused
« Reply #5 on: July 12, 2012, 06:23:01 PM »
Im only interested in using the build in DYNDNS, since I only need one name resolution to find the computer, and I like adding as little uncessary software as possible.

Can you tell me where the errors are that would be logged if the current set up is not working for dyn dns.  Perhaps there is an error that I can read and see what its saying.

Also is there a command I can type to update the dyndns settings as I test out varous settings in the admin setup menu for these two settings eg username and password. I hate rebooting every time.

Finally, Mary (or anyone else)  I need to understand what you have said.
Are you saying that on the very first setup screen where it says.
-------------------------------------
Primary domain name
Please enter the primary domain name for the server.
This will be the default domain for your email and web server. Virtual Domains can be added later using the server manager.
-------------------------------------
Im suppose to put my dyndns name eg [ hello.dyndns.info ]

I have not done this if this is what is required. I dont really recall doing this in the past but perhaps I just have bad memory. Right now we have our computer name and organization name here. But its just for reference sake here not registered.

Can you confirm that this is what is meant.

Thanks.



Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Is Dynamic DNS service working out of the box or not a bit confused
« Reply #6 on: July 12, 2012, 06:46:57 PM »
steve288

Quote
Are you saying that on the very first setup screen where it says.
-------------------------------------
Primary domain name
Please enter the primary domain name for the server.
This will be the default domain for your email and web server. Virtual Domains can be added later using the server manager.
-------------------------------------
I'm supposed to put my dyndns name eg  hello.dyndns.info

Yes, if you want the sme ddns client to update dyndns with your dynamic IP and you want that domain name to resolve to your server from the Internet
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline steve288

  • *
  • 336
  • +0/-0
Re: Is Dynamic DNS service working out of the box or not a bit confused
« Reply #7 on: July 12, 2012, 07:50:10 PM »
Thank you.