Dynamic DNS and freeedns.afraid.org

Status
Not open for further replies.

ian351c

Patron
Joined
Oct 20, 2011
Messages
219
I can't find a bug report regarding the Dynamic DNS client and freedns.afraid.org as referenced in this thread, so I'm adding it here in the hopes that a ticket will be created. I've also registered for an account on bugs.freenas.org but it's been hours and I haven't received the confirmation email, so no luck there for me either.

Thanks.
 
D

dlavigne

Guest
Message me the username/email address you used to register at bugs.freenas.org and I'll check your account status.
 

ian351c

Patron
Joined
Oct 20, 2011
Messages
219
The email came in. Took a while. It's a bit late now, but I'll open a ticket in the morning. Thanks.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
iXsystems had a problem with outgoing email for about 8 hours. Any backed up emails should be sent already. :D
 

ian351c

Patron
Joined
Oct 20, 2011
Messages
219
Well, bug closed, but issue not really resolved... It turns out that the config for freedns.afraid.org is "special" and doesn't fit into the standard fields presented in the FreeNAS GUI. It's possible to make it work though. So for future reference, this is what works for me:

Provider: freedns.afraid.org
Domain Name: yourfirsthost,MD5HASH ip4 (note the comma and the space and that technically "ip4" is optional)
Username: guest (not used, but should be filled in)
Password: guest (again, not used)
Confirm Password: guest
Update Period: 3600 (1 hour)
Forced Update Period: 86400 (1 day)
Auxiliary Parameters: --alias yoursecondhost,MD5HASH ip4 (repeat for additional hostnames using the same IP address)

Get your hash: Log into your account on freedns.afraid.org, click on "XML API" and view the magic incantation. It should be obvious which part of the incantation is the hash.
 

Bmck26

Dabbler
Joined
Dec 9, 2013
Messages
48
Has anyone tried setting freedns.afraid.org up on 9.3 yet? There is an "IP Server" field after Provider now. I don't know if that field was present in previous builds since this is the first time I've attempted to setup a dynamic dns.
 

ian351c

Patron
Joined
Oct 20, 2011
Messages
219
I set mine up for 9.3 the same way I did for 9.2. The IP Server field is just if you want to use something besides the default server to determine your external IP address.
 

stefanb

Patron
Joined
Dec 12, 2014
Messages
200
Hi,

after several tries, I got dyndns service for freedns.afraid.org running.
Here are my settings:

Provider: select freedns.afraid.org from dropdown list
IP-Server: blank/none
Domain name: <your freedns domain>,<hash> (hash can be found in freedns.afraid.org account. Example: freenas.privatedns.org,EzMzY3MzQ5YWZzem1tbXpVdtSUVPQlg0OjcDRQSHM0SV)
Username: <your registered username>
Password: <your registered password>
Update period: 3600 (1h)
Forced update period: 86400 (24h, update is only submitted when IP changed, forced update sends update to provider even if IP didn't change. So the provider recognize that account is still in use ...)
Auxillary parameters: blank/none

Regards
S.
 

ian351c

Patron
Joined
Oct 20, 2011
Messages
219
Interesting... Did you have to use your registered username and password to make it work? It still works for me using dummy values. The hash is really what matters AFAIK.
 

stefanb

Patron
Joined
Dec 12, 2014
Messages
200
Yes, I used the registered username and passwort.
Its confusing, because the web-url only uses the hash to update the IP.
Maybe it will work using dummy user&pass as workaround of the incompatibility of freedns and dyndns service.
 
Joined
Jan 21, 2015
Messages
1
Hi,

I've recently upgraded one of my servers from 9.2.1.something to 9.3 (currently FreeNAS-9.3-STABLE-201501162230).

After upgrade the DynDNS service fails. I've found this thread and followed your suggestions. However I can't get it working...

As soon as I start the service it fails. It seems that the comma separating domain name and hash key is interpreted as a delimiter between two domains that both needs an update. See console output in code section below.

First update fails, likely because there's no hash key.
Second update fails, because the hash key isn't a domain name.

Any suggestions would be highly appreciated.

Best regards,
Emil

Code:
Jan 21 21:11:38 skabet notifier: Starting inadynmt.
Jan 21 21:11:38 skabet INADYN[42093]: Wed Jan 21 21:11:38 2015: W:INADYN: IP address for alias 'xxxx.xxxxxxxxx.info.tm:auto' needs update to 'xx.xxx.xxx.xxx'...
Jan 21 21:11:38 skabet INADYN[42093]: Wed Jan 21 21:11:38 2015: W:INADYN: IP address for alias 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:auto' needs update to 'xx.xxx.xxx.xxx'...
Jan 21 21:11:39 skabet INADYN[42093]: Wed Jan 21 21:11:39 2015: W:INADYN: Error validating DYNDNS svr answer. Check usr,pass,hostname!
Jan 21 21:11:39 skabet INADYN[42093]: Wed Jan 21 21:11:39 2015: C:INADYN:
**********************************************************************
Fatal dyndns server update error for alias, xxxx.xxxxxxxxx.info.tm.
This client should be stopped and corrected for configuration errors, and restarted...
**********************************************************************
Jan 21 21:11:39 skabet INADYN[42093]: Wed Jan 21 21:11:39 2015: W:INADYN: DYNDNS Server response:
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 21 Jan 2015 20:11:39 GMT
Content-Type: text/plain; charset=utf-8
Connection: close
Vary: Accept-Encoding
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache
Expires: Mon, 26 Jul 1997 05:00:00 GMT
X-Cache: MISS

ERROR: Invalid update URL (2)
Jan 21 21:11:41 skabet INADYN[42093]: Wed Jan 21 21:11:41 2015: W:INADYN: Error validating DYNDNS svr answer. Check usr,pass,hostname!
Jan 21 21:11:41 skabet INADYN[42093]: Wed Jan 21 21:11:41 2015: C:INADYN:
**********************************************************************
Fatal dyndns server update error for alias, xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
This client should be stopped and corrected for configuration errors, and restarted...
**********************************************************************
Jan 21 21:11:41 skabet INADYN[42093]: Wed Jan 21 21:11:41 2015: W:INADYN: DYNDNS Server response:
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 21 Jan 2015 20:11:41 GMT
Content-Type: text/plain; charset=utf-8
Connection: close
Vary: Accept-Encoding
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache
Expires: Mon, 26 Jul 1997 05:00:00 GMT
X-Cache: MISS

ERROR: Invalid update URL (2)
Jan 21 21:11:41 skabet INADYN[42093]: Wed Jan 21 21:11:41 2015: W:DYNDNS: Failed updating alias table...
Jan 21 21:11:41 skabet INADYN[42093]: Wed Jan 21 21:11:41 2015: W:'RC_DYNDNS_RSP_CONFIG' (0x49) updating the IPs. (it 0)
 

stefanb

Patron
Joined
Dec 12, 2014
Messages
200
Hi,
I quit trying to get it work - on my test machine it works, on my production system its not working - same settings.
I recommend to create a simple cron-job:

Goto http://freedns.afraid.org/dynamic/ and follow the link to "quick cron example" - this creates an example with your hash.
Create a cronjob from CLI or use the GUI and add the wget in the command field.

Code:
wget -O - http://freedns.afraid.org/dynamic/update.php?<HASH> >> /tmp/privatedns_org.log 2>&1 &


S.
 

JJT211

Patron
Joined
Jul 4, 2014
Messages
323
Hi,
I quit trying to get it work - on my test machine it works, on my production system its not working - same settings.
I recommend to create a simple cron-job:

Goto http://freedns.afraid.org/dynamic/ and follow the link to "quick cron example" - this creates an example with your hash.
Create a cronjob from CLI or use the GUI and add the wget in the command field.

Code:
wget -O - http://freedns.afraid.org/dynamic/update.php?<HASH> >> /tmp/privatedns_org.log 2>&1 &


S.

I tried all of the above, even trying to create the cron job (whch I have no idea what im doing with this). I just simply add cronjob and in the command field I posted my personal: wget -O - http://freedns.afraid.org/dynamic/update.php?<HASH> >> /tmp/privatedns_org.log 2>&1 &

I then clicked on view cronjobs and selected 'run now' with the same exact results results
Code:
Jan 26 06:30:27 freenas notifier: Stopping inadynmt.
Jan 26 06:30:27 freenas notifier: Waiting for PIDS: 25435.
Jan 26 06:30:28 freenas notifier: inadynmt not running?
Jan 26 06:30:28 freenas notifier: Starting inadynmt.
Jan 26 06:30:29 freenas INADYN[25747]: Mon Jan 26 06:30:29 2015: W:INADYN: IP address for alias '' needs update to '72.'...
Jan 26 06:30:29 freenas INADYN[25747]: Mon Jan 26 06:30:29 2015: W:INADYN: IP address for alias '' needs update to '72.2'...
Jan 26 06:30:29 freenas INADYN[25747]: Mon Jan 26 06:30:29 2015: W:INADYN: Error validating DYNDNS svr answer. Check usr,pass,hostname!
Jan 26 06:30:29 freenas INADYN[25747]: Mon Jan 26 06:30:29 2015: C:INADYN:
**********************************************************************
Fatal dyndns server update error for alias, 
This client should be stopped and corrected for configuration errors, and restarted...
**********************************************************************
Jan 26 06:30:29 freenas INADYN[25747]: Mon Jan 26 06:30:29 2015: W:INADYN: DYNDNS Server response:
HTTP/1.1 200 OK
Server: nginx
Date: Mon, 26 Jan 2015 12:30:29 GMT
Content-Type: text/plain; charset=utf-8
Connection: close
Vary: Accept-Encoding
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache
Expires: Mon, 26 Jul 1997 05:00:00 GMT
X-Cache: MISS

ERROR: Invalid update URL (2)
Jan 26 06:30:31 freenas INADYN[25747]: Mon Jan 26 06:30:31 2015: W:INADYN: Error validating DYNDNS svr answer. Check usr,pass,hostname!
Jan 26 06:30:31 freenas INADYN[25747]: Mon Jan 26 06:30:31 2015: C:INADYN:
**********************************************************************
Fatal dyndns server update error for alias, .
This client should be stopped and corrected for configuration errors, and restarted...
**********************************************************************
Jan 26 06:30:31 freenas INADYN[25747]: Mon Jan 26 06:30:31 2015: W:INADYN: DYNDNS Server response:
HTTP/1.1 200 OK
Server: nginx
Date: Mon, 26 Jan 2015 12:30:31 GMT
Content-Type: text/plain; charset=utf-8
Connection: close
Vary: Accept-Encoding
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache
Expires: Mon, 26 Jul 1997 05:00:00 GMT
X-Cache: MISS

ERROR: Invalid update URL (2)
Jan 26 06:30:31 freenas INADYN[25747]: Mon Jan 26 06:30:31 2015: W:DYNDNS: Failed updating alias table...
Jan 26 06:30:31 freenas INADYN[25747]: Mon Jan 26 06:30:31 2015: W:'RC_DYNDNS_RSP_CONFIG' (0x49) updating the IPs.
 
Last edited:

stefanb

Patron
Joined
Dec 12, 2014
Messages
200

JJT211

Patron
Joined
Jul 4, 2014
Messages
323
BTW, what am I supposed to be seeing when it in fact is working?
 

JJT211

Patron
Joined
Jul 4, 2014
Messages
323
Leave all other settings besides the command in add cronjobs the same?

Ive got to run to work now, Ill play around with it more afterwards, thanks for the swift response, Ill read over documentation when I get some freetime at work today.
 

stefanb

Patron
Joined
Dec 12, 2014
Messages
200
Take a look to the log file:
/tmp/privatedns_org.log

OR: goto the http://freedns.afraid.org/dynamic/ backend, manualy change the ip adress to a wrong value, run the chronjob in freenas and wait 2-5minutes and check if IP is updated...

S.
 

JJT211

Patron
Joined
Jul 4, 2014
Messages
323
Thx for the heads up.....Post editted(you can xxxxx out my domain, I should be good) ....I got lazy...lol

Will do and ill let ya know how it goes. Thx again!
 

stefanb

Patron
Joined
Dec 12, 2014
Messages
200
Set the intervals as you like/need.
Mine:
Bildschirmfoto 2015-01-26 um 13.56.57.png


I only need one update at 18:00, cause at 18:30 the rsync offsite-backup starts and my IP will only change 3-4 times/year
S.
 
Status
Not open for further replies.
Top