OS2World OLD-STATIC-BACKUP Forum

OS/2 - Technical => Applications => Topic started by: melf on 2011.05.23, 20:41:57

Title: Dynamic DNS update
Post by: melf on 2011.05.23, 20:41:57
I have a server, running on eCS connected to the domain name elfonnet.nu. I can see there is quite a lot of dns-updaters, but all seems linked to e.g. Dyndns.com, noIP etc. Does that mean I have to have one of the free domain names from those providers to make these updaters work or is there some way to update my own domain? My ISP recommend several programs for Windows connecting directly to them (eg dnser) as there is an editable config file to direct the program where you want. Do someone know of similar programs for eCS-OS2?
Title: Re: Dynamic DNS update
Post by: sXwamp on 2011.05.23, 22:28:35
Quote from: melf on 2011.05.23, 20:41:57
Do someone know of similar programs for eCS-OS2?

Try this:

ftp.rrzn.uni-hannover.de/pub/mirror/os2/apps/internet/dynip/

ftp.rrzn.uni-hannover.de/pub/mirror/os2/apps/internet/dynip/00filesd.txt


Greggory
Title: Re: Dynamic DNS update
Post by: melf on 2011.05.24, 10:37:39
Thanks for the link Greggory, but it seems to me that every such program is linked to a certain provider and not configurable in that respect.
Title: Re: Dynamic DNS update
Post by: abwillis on 2011.05.24, 23:51:40
Are you needing to connect to a provider other than your ISP?  If just to the ISP then is the system connecting directly to it or going through a NAT? 
Title: Re: Dynamic DNS update
Post by: Paul Smedley on 2011.05.25, 00:01:41
Quote from: melf on 2011.05.23, 20:41:57
I have a server, running on eCS connected to the domain name elfonnet.nu. I can see there is quite a lot of dns-updaters, but all seems linked to e.g. Dyndns.com, noIP etc. Does that mean I have to have one of the free domain names from those providers to make these updaters work or is there some way to update my own domain? My ISP recommend several programs for Windows connecting directly to them (eg dnser) as there is an editable config file to direct the program where you want. Do someone know of similar programs for eCS-OS2?

iirc dyndns.org allows you to update the IP for your domain via a client - I used to do this when I was on a static IP - it was either dnsmadeeasy or dyndns I forget now...

Of course, some routers have a built in client to do the updates for you...
Title: Re: Dynamic DNS update
Post by: melf on 2011.05.25, 00:34:18
Hi abwillis and Paul,

Forget about ISP's, I used the wrong term. What I need is to connect to my domain name  provider which is Loopia (a Swedish company) and I connect to the web through a router. I've bought my domain through them and all configurations for my domain is at there site. They offer configuration files fitting e.g dnser, which connect to them and change configuration when IP changes. However no program they offer/recommend works (of course) in eCS.

Programs I found for eCS connects by default to eg DynDNS.org , noIP etc and are not able to work against other domain name providers. My router, D-link, offers Dynamic update through Dyndns, noIP, dhs, TZO, but I can't see how it helps or I don't understand how those organisations would be able to change the configuration of my domain at Loopia??

So either 1) It's only possible to have a dynamic update by using a program that can connect directly to Loopia or 2) I simply don't understand how such updates work.

Did this clear up things?
Title: Re: Dynamic DNS update
Post by: sXwamp on 2011.05.25, 01:17:15
Quote from: melf on 2011.05.25, 00:34:18
Hi abwillis and Paul,

Forget about ISP's, I used the wrong term. What I need is to connect to my domain name  provider which is Loopia (a Swedish company) and I connect to the web through a router. I've bought my domain through them and all configurations for my domain is at there site. They offer configuration files fitting e.g dnser, which connect to them and change configuration when IP changes. However no program they offer/recommend works (of course) in eCS.

Programs I found for eCS connects by default to eg DynDNS.org , noIP etc and are not able to work against other domain name providers. My router, D-link, offers Dynamic update through Dyndns, noIP, dhs, TZO, but I can't see how it helps or I don't understand how those organisations would be able to change the configuration of my domain at Loopia??

So either 1) It's only possible to have a dynamic update by using a program that can connect directly to Loopia or 2) I simply don't understand how such updates work.

Did this clear up things?


Ok, let me see if this is right.   Your server is on your computer and Loopia is your domain name provider (and its configured something like Dyndns, but Loopia has no os/2 program for updating your IP address ).

If Loopia supports WebHop Redirect (URL forwarding service), then you can setup a account with Dyndns.org.   And have Loopia redirect to Dyndns which in turn has a native os/2 program for Dynamic DNS.

or

if your not to worried about your domain name, see if you can get your money back from Loopia and switch to free or paid account ($15.yr) with a domain name from Dyndns.org


Greggory  
Title: Re: Dynamic DNS update
Post by: abwillis on 2011.05.25, 03:03:00
Quote from: melf on 2011.05.25, 00:34:18
Did this clear up things?
Yes, it means my initial thought of what you might be asking was wrong.  However, here is what I have found that may or may not help you as I can't really test it.
If you have the option of your router using dd-wrt then this link may help:
http://www.dd-wrt.com/phpBB2/viewtopic.php?p=504533
if not then it at least suggest that:
http://hobbes.nmsu.edu/download/pub/os2/apps/internet/dynip/inadyn_196.zip
might be usable.  While it does not mention it as being supported, inadyn is what the dd-wrt is using in the first link to connect to loopia.
Title: Re: Dynamic DNS update
Post by: melf on 2011.05.25, 10:00:47
Thanks for all input. I'll go on and experiment now. According to Loopia it seems that cURL could be used for dynamic updates, and Paul have made recent OS2 ports. I'll report any kind of success. Thanks again!


UPDATE: tried cURL, and used this line (one line) offered by Loopia.:
curl -s --user 'username:password' --url "http://dns.loopia.se/XDynDNSServer/XDynDNS.php?hostname=mydomain&myip=myIPnumber"

This gave me the answer "nochg" , I guess that this means it works! However I have to put in the current IP-number manually. But they offer another script, also checking the current IP (one line):

curl -s --user 'username:password' --url "http://dns.loopia.se/XDynDNSServer/XDynDNS.php?
hostname=mydomain&myip="`curl -s  dns.loopia.se/checkip/checkip.php |
sed 's/^.*: \([^<]*\).*$/\1/'`; echo

This line returns:   sed: -e expression #1, char 1: Unknown command: `'' . 

Title: Re: Dynamic DNS update
Post by: Andi on 2011.05.25, 13:37:10
No idea about curl or sed. But there are several MyIP versions around for eCS. The last one compiled by me :-)
Title: Re: Dynamic DNS update
Post by: abwillis on 2011.05.25, 16:33:14
I almost posted this one yesterday too, it shows using curl and sed but you may need some php too but I am not sure which is why I didn't initially post it:
http://codesnippets.joyent.com/posts/show/2212
Title: Re: Dynamic DNS update
Post by: melf on 2011.05.25, 17:06:29
The reason for the error message seems to be that I missed a "sed-package". I really don't know what that is but I found a package for OS/2. To use that I needed a "libregex-package" which I in fact also found. Of course these have to be set up the proper unix way (this is what I have hard to stand about unix-linux, a lot of packages and a "strange" setup ;-)  ). I didn't succeed today, but may do another day. Thanks everyone for feedback!