MULTIPLE DDNS HOST SUPPORT
-
- New here
- Posts: 6
- Joined: Wed Dec 12, 2012 6:15 am
MULTIPLE DDNS HOST SUPPORT
AS WE HAVE MORE THAN 1 DDNS ACCOUNT HOW WILL IT BE TO ADD MULTIPLE DDNS HOST SUPPORT. SUCH AS NO-IP, DYNDNS HOSTS.
- pwilson
- Guru
- Posts: 22533
- Joined: Fri Mar 06, 2009 11:20 am
- Location: Victoria, BC, Canada (UTC-08:00)
Re: MULTIPLE DDNS HOST SUPPORT
alohame wrote:AS WE HAVE MORE THAN 1 DDNS ACCOUNT HOW WILL IT BE TO ADD MULTIPLE DDNS HOST SUPPORT. SUCH AS NO-IP, DYNDNS HOSTS.
- Install Optware IPKG
- Install inadyn - 1.97.4-1 - INADYN is a dynamic DNS client. That is, it maintains the IP address of a host name. It periodically checks whether the IP address is still active.
Code: Select all
ipkg update ipkg inadyn
- Configure your /opt/etc/inadyn.conf:
Choose Select All, then paste into an SSH session on your NAS.
Code: Select all
touch /opt/etc/indyn.conf chmod 644 /opt/etc/indyn.conf cat >>/opt/etc/indyn.conf <<EOF # Basic configuration file for inadyn # # /opt/etc/inadyn.conf # # Customize with your DDNS settings... update_period_sec 600 # Check for a new IP every 600 seconds username ****** password ******* dyndns_system default@no-ip.com alias samthedog.no-ip.org EOF
- Create a startup script so if starts up when the NAS started:
Choose Select All, then paste into an SSH session on your NAS.
Code: Select all
touch /opt/etc/init.d/S22dyndns-additional-hosts chmod +x /opt/etc/init.d/S22dyndns-additional-hosts cat >>/opt/etc/init.d/S22dyndns-additional-hosts <<EOF #!/bin/sh # # Call Optware's "inadyn" dynamic DNS (DDNS) client. to set our additional host names. # # Based on script found in QNAP Forums Thread: http://forum.qnap.com/viewtopic.php?f=24&t=68252 # /opt/bin/inadyn EOF /opt/etc/init.d/S22dyndns-additional-hosts
Enjoy...Inadyn is a dynamic DNS (DDNS) client. It does periodic and/or on-demand checks
of your externally visible IP address and updates the host name to IP mapping at
your DDNS service provider when necessary.
dyndns.org:
inadyn -u username -p password -a my.registrated.name
freedns.afraid.org:
inadyn --dyndns_system default@freedns.afraid.org \
-a my.registrated.name,hash -a anothername,hash2
The 'hash' is extracted from the grab URL batch file that is downloaded from
freedns.afraid.org
--help help
-u your membername / hash
--password your password. Optional.
-p your password
--alias alias host name. this option can appear multiple times.
-a alias host name. this option can appear multiple times.
--input_file <FILE>
The file containing (further) options. The default
config file, /opt/etc/inadyn.conf, is used if inadyn is
called without any command line options.
--ip_server_name <srv_name[:port] local_url>
Local IP is detected by parsing the response after
returned by this server and URL. The first IP found
in the HTTP response is considered 'my IP'.
Default value: 'checkip.dyndns.org /
--dyndns_server_name [<NAME>[:port]]
The server that receives the update DNS request.
Allows the use of unknown DNS services that accept HTTP
updates. If no proxy is wanted, then it is enough to
set the dyndns system. Default servers will be taken.
--dyndns_server_url <name>
Full URL relative to DynDNS server root.
Ex: /some_script.php?hostname=
--dyndns_system <NAME> - Select DDNS service provider, one of the following.
o For dyndns.org: dyndns@dyndns.org, or
statdns@dyndns.org, or
customdns@dyndns.org
o For freedns.afraid.org: default@freedns.afraid.org
o For http://www.zoneedit.com: default@zoneedit.com
o For http://www.no-ip.com: default@no-ip.com
o For easydns.com: default@easydns.com
o For tzo.com: default@tzo.com
o For 3322.org: dyndns@3322.org
o For dnsomatic.com: default@dnsomatic.com
o For tunnelbroker.net: ipv6tb@he.net
o For dynsip.org: default@dynsip.org
o For sitelutions.com: default@sitelutions.com
o For generic: custom@http_svr_basic_auth
Default value: dyndns@dyndns.org
--proxy_server [NAME[:port]] - the http proxy server name and port. Default is none.
--update_period how often the IP is checked. The period is in [ms]. Default is about 1 min. Max is 10 days
--update_period_sec how often the IP is checked. The period is in [sec]. Default is about 1 min. Max is 10 days
--forced_update_period how often the IP is updated even if it is not changed. [in sec]
--log_file log file path abd name
--background run in background. output to log file or to syslog
--verbose set dbg level. 0 to 5
--iterations Set the number of DNS updates. Default is 0 (forever).
--syslog Force logging to syslog, e.g., /var/log/messages. Works on UN*X systems only.
--change_persona <uid[:gid]>
After init switch to a new user/group.
Works on UN*X systems only.
--bind_interface <ifname>
Set interface to bind. Parameters: <interface>.
Works on UN*X systems only.
--pidfile <FILE>
Set pidfile, default /var/run/inadyn.pid.
--version Print the version number
--wildcard Enable domain wildcarding for dyndns.org, 3322.org, or easydns.com.
--exec Full path to external command to run after an IP update.
Patrick M. Wilson
Victoria, BC Canada
QNAP TS-470 Pro w/ 4 * Western Digital WD30EFRX WD Reds (RAID5) - - Single 8.1TB Storage Pool FW: QTS 4.2.0 Build 20151023 - Kali Linux v1.06 (64bit)
Forums: View My Profile - Search My Posts - View My Photo - View My Location - Top Community Posters
QNAP: Turbo NAS User Manual - QNAP Wiki - QNAP Tutorials - QNAP FAQs
Please review: When you're asking a question, please include the following.
- LThome
- Getting the hang of things
- Posts: 77
- Joined: Mon Oct 31, 2011 12:56 pm
Re: MULTIPLE DDNS HOST SUPPORT
Goooood
Last edited by LThome on Thu Dec 13, 2012 3:02 pm, edited 1 time in total.
NAS: TS-112 | F/W:4.3.3.0546 build 20180504| H/W: Seagate ST2000VN0004 - IRONWOLF 2TB
Services: Apache, FTP, Samba v1 , Twonky Server
QPKGs: Cloud Drive Sync, HappyGet 2
Services: Apache, FTP, Samba v1 , Twonky Server
QPKGs: Cloud Drive Sync, HappyGet 2
- LThome
- Getting the hang of things
- Posts: 77
- Joined: Mon Oct 31, 2011 12:56 pm
Re: MULTIPLE DDNS HOST SUPPORT
pwilson wrote:alohame wrote:AS WE HAVE MORE THAN 1 DDNS ACCOUNT HOW WILL IT BE TO ADD MULTIPLE DDNS HOST SUPPORT. SUCH AS NO-IP, DYNDNS HOSTS.Enjoy...
- Install Optware IPKG
- Install inadyn - 1.97.4-1 - INADYN is a dynamic DNS client. That is, it maintains the IP address of a host name. It periodically checks whether the IP address is still active.
Code: Select all
ipkg update ipkg install inadyn
- Configure your /opt/etc/inadyn.conf - The default config file, /opt/etc/inadyn.conf, is used if inadyn is called without any command line options.:
Choose Select All, then paste into an SSH session on your NAS.Code: Select all
touch /opt/etc/indyn.conf chmod 644 /opt/etc/indyn.conf cat >>/opt/etc/indyn.conf <<EOF # Basic configuration file for inadyn # # /opt/etc/inadyn.conf # # Customize with your DDNS settings... update_period_sec 600 # Check for a new IP every 600 seconds log_file ***/inadyn.log dyndns_system default@dnsomatic.com username ******* password ******* alias all.dnsomatic.com background EOF
- Create a startup script of an arbitrary file at /opt/etc/init.d/ such as S22dyndns-additional-hosts, so if starts up when the NAS started: - Start the inadyn (DDNS) client, /opt/bin/inadyn
Choose Select All, then paste into an SSH session on your NAS.Code: Select all
touch /opt/etc/init.d/S22dyndns-additional-hosts chmod +x /opt/etc/init.d/S22dyndns-additional-hosts cat >>/opt/etc/init.d/S22dyndns-additional-hosts <<EOF #!/bin/sh # # Call Optware's "inadyn" dynamic DNS (DDNS) client. to set our additional host names. # # Based on script found in QNAP Forums Thread: http://forum.qnap.com/viewtopic.php?f=24&t=68252 # /opt/bin/inadyn exit 0 EOF /opt/etc/init.d/S22dyndns-additional-hosts
Thank pwilson , It works
But I have a question.
After reboot, all files remain there but the /opt/etc/init.d/S22dyndns-additional-hosts process do not run again.
How can it run automatically after every reboot?
Last edited by LThome on Sun Dec 16, 2012 10:58 am, edited 7 times in total.
NAS: TS-112 | F/W:4.3.3.0546 build 20180504| H/W: Seagate ST2000VN0004 - IRONWOLF 2TB
Services: Apache, FTP, Samba v1 , Twonky Server
QPKGs: Cloud Drive Sync, HappyGet 2
Services: Apache, FTP, Samba v1 , Twonky Server
QPKGs: Cloud Drive Sync, HappyGet 2
- pwilson
- Guru
- Posts: 22533
- Joined: Fri Mar 06, 2009 11:20 am
- Location: Victoria, BC, Canada (UTC-08:00)
Re: MULTIPLE DDNS HOST SUPPORT
If you follow the instructions for Running /opt/etc/init.d/* on startup within the QNAPedua article: Install Optware IPKG, your system will always run the scripts you place in /opt/etc/init.d. (Don't forget to to do a "chmod +x scriptname" to make your scripts executable.LThome wrote:But I have a question.
After reboot, all files remain there but the /opt/etc/init.d/S22dyndns-additional-hosts process do not run again.
How can it run automatically after every reboot?
This patch will allow not only your "inadyn" script to run, but will allow all scripts placed in /opt/etc/init.d to run at every system "start". Sorry I didn't draw your attention to this part, I assumed you would have found it yourself when you reviewed the original QNAPedia article: Install Optware IPKG I referred you to. (Step #1 in my original instructions).
I hope with this missing piece of the puzzle, I hope this gets your "inadyn" (/opt/etc/init.d/S22dyndns-additional-hosts) working for you. Sorry I wasn't more complete in my response to your original inquiry.
Patrick.
Patrick M. Wilson
Victoria, BC Canada
QNAP TS-470 Pro w/ 4 * Western Digital WD30EFRX WD Reds (RAID5) - - Single 8.1TB Storage Pool FW: QTS 4.2.0 Build 20151023 - Kali Linux v1.06 (64bit)
Forums: View My Profile - Search My Posts - View My Photo - View My Location - Top Community Posters
QNAP: Turbo NAS User Manual - QNAP Wiki - QNAP Tutorials - QNAP FAQs
Please review: When you're asking a question, please include the following.
- LThome
- Getting the hang of things
- Posts: 77
- Joined: Mon Oct 31, 2011 12:56 pm
Re: MULTIPLE DDNS HOST SUPPORT
It works prefectly, Thank you very much !!pwilson wrote:If you follow the instructions for Running /opt/etc/init.d/* on startup within the QNAPedua article: Install Optware IPKG, your system will always run the scripts you place in /opt/etc/init.d. (Don't forget to to do a "chmod +x scriptname" to make your scripts executable.LThome wrote:But I have a question.
After reboot, all files remain there but the /opt/etc/init.d/S22dyndns-additional-hosts process do not run again.
How can it run automatically after every reboot?
This patch will allow not only your "inadyn" script to run, but will allow all scripts placed in /opt/etc/init.d to run at every system "start". Sorry I didn't draw your attention to this part, I assumed you would have found it yourself when you reviewed the original QNAPedia article: Install Optware IPKG I referred you to. (Step #1 in my original instructions).
I hope with this missing piece of the puzzle, I hope this gets your "inadyn" (/opt/etc/init.d/S22dyndns-additional-hosts) working for you. Sorry I wasn't more complete in my response to your original inquiry.
Patrick.
NAS: TS-112 | F/W:4.3.3.0546 build 20180504| H/W: Seagate ST2000VN0004 - IRONWOLF 2TB
Services: Apache, FTP, Samba v1 , Twonky Server
QPKGs: Cloud Drive Sync, HappyGet 2
Services: Apache, FTP, Samba v1 , Twonky Server
QPKGs: Cloud Drive Sync, HappyGet 2
-
- New here
- Posts: 9
- Joined: Sun Apr 10, 2016 1:02 pm
Re: MULTIPLE DDNS HOST SUPPORT
Hi!
As some years have passed by... and I guess Entware is recommended over Optware... I'd like to ask you for an update on inadyn configuration to make it work properly on multiple alias by 2016.
If I followed your instructions well:
1) I installed Entware
2) I created a configuration file for inadyn in /opt/etc/inadyn.conf (by the way I don' know if in previous posts referred to this config file "indyn" is a typo).
3) I created a startup script in /opt/etc/init.d/inadyn
But nothing seems to happen. No IPs are updated in my service provider (no-ip). I don't know if inadyn is running. I don't know either if I have to modify anything else on Entware to make those scripts work on startup.
Thanks!
As some years have passed by... and I guess Entware is recommended over Optware... I'd like to ask you for an update on inadyn configuration to make it work properly on multiple alias by 2016.
If I followed your instructions well:
1) I installed Entware
2) I created a configuration file for inadyn in /opt/etc/inadyn.conf (by the way I don' know if in previous posts referred to this config file "indyn" is a typo).
3) I created a startup script in /opt/etc/init.d/inadyn
But nothing seems to happen. No IPs are updated in my service provider (no-ip). I don't know if inadyn is running. I don't know either if I have to modify anything else on Entware to make those scripts work on startup.
Thanks!
-
- New here
- Posts: 9
- Joined: Sun Apr 10, 2016 1:02 pm
Re: MULTIPLE DDNS HOST SUPPORT
If I execute /opt/etc/init.d/S52inadyn start... I get
Starting inadyn... failed.
Don't know why. I checked the permission on the config file and the content of the files. I even got them working once and my IPs were updated correctly. But if I reboot the server inadyn does not start and with the command it fails. If I check it it gives back a "dead" status. Don't know where to go from here.
Any help appreciated.
Starting inadyn... failed.
Don't know why. I checked the permission on the config file and the content of the files. I even got them working once and my IPs were updated correctly. But if I reboot the server inadyn does not start and with the command it fails. If I check it it gives back a "dead" status. Don't know where to go from here.
Any help appreciated.
- OneCD
- Guru
- Posts: 12144
- Joined: Sun Aug 21, 2016 10:48 am
- Location: "... there, behind that sofa!"
Re: MULTIPLE DDNS HOST SUPPORT
Hi davilafran,
Sadly, Patrick is no longer active on this forum but maybe another community member can help.
Sadly, Patrick is no longer active on this forum but maybe another community member can help.
-
- New here
- Posts: 9
- Joined: Sun Apr 10, 2016 1:02 pm
Re: MULTIPLE DDNS HOST SUPPORT
Hi OneCD!
Thanks for your attention and explanation about Patrick Wilson's status. Hope someone else could give me a hand.
Regards
Thanks for your attention and explanation about Patrick Wilson's status. Hope someone else could give me a hand.
Regards
-
- Starting out
- Posts: 37
- Joined: Thu Feb 03, 2011 5:40 am
Re: MULTIPLE DDNS HOST SUPPORT
Hello Davilafran,
I am trying to achieve the same setup: inadyn using entware.
Did you finally get a working solution?
I am trying to achieve the same setup: inadyn using entware.
Did you finally get a working solution?
-
- New here
- Posts: 9
- Joined: Sun Apr 10, 2016 1:02 pm
Re: MULTIPLE DDNS HOST SUPPORT
Right now nothing works for me