OT: Rails and DDNS

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

OT: Rails and DDNS

Ralph Shnelvar
OT: Rails and DDNS Ruby on Rails Talk,

So I have an ASUS TM-AC1900 router that offers DDNS (Dynamic DNS).

I have a Rails app (call it some-old-app) and a domain (call it some-old-app.com) and got it working with the ASUS router and its DDNS so that when a user invoked
 
https://www.some-old-app.com/something
everything worked.



Basically, in my SpiritDomains (SpiritDomains is my ISP) control panel, I set things up so that some-old-app.com forwards requests to some-old-app.asuscomm.com.

(*.asuscomm.com is a free service provided by ASUS and it provides DDNS services for their TM-AC1900 router.)

Sadly, I didn't take enough notes so I could figure out how I got the ASUS DDNS service to work with
https://www.some-old-app.com/something


Fortunately, I backed up everything including my router settings.  I have no problems when restoring my router and when I do, my https://www.some-old-app.com/something works just fine.

I now have a new domain:
www.some-new-app.com.  

When I modify
 1) my SpiritDomains settings so that it forwards
some-new-app.com to some-new-app.asuscomm.com, and
 2) my router settings so that some-new-app.asuscomm.com is registered with ASUS
then when I attempt to do a
www.some-new-app.com/something my browser says that www.some-old-app.com can't be found.

Please note, I waited several hours before issuing
www.some-new-app.com/something just in case there was an issue about DNS propagation.


I cannot for the life of me figure out how to get
https://www.some-new-app.com/something to work.  I no longer need some-old-app.com so the router's limitation of only one DDNS service does not matter to me.


Does anyone have knowledge of a DDNS service (it doesn't have to be free) with complete instructions on how to hook up a Rails app so that a user can invoke
https://www.some-new-app.com/something without having to specify https://www.some-new-app.Some-DDNS-Service.com/something

Does anyone have experience with the free dynu.com service?  Does it slow things down appreciably?  Are there any downsides to using it?

Of course, if you have the answer to how to get the ASUS router to work, that would be even better.


Ralph Shnelvar

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1864781283.20180709093926%40dos32.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

OT: Rails and DDNS

Mike Simkins
Not sure I understand all of this but

As long as you can send some-new-app.com to your IP address and some-old-app.com to the same address it should not be a problem

You could use a CNAME record to forward both of these to myrouter.asuscomm.com which is your actual device

Once it gets there I assume you forward the traffic to your web host where it should still be receiving requests (Host: headers)  for some-old-app.com and some-new-app.com.

Then your web server should be directing the traffic to the correct rails app

It’s a bit difficult to diagnose without more information but hopefully this is a pointer

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c551662c-7fc2-4dda-967a-fe8e8fd7d2e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: OT: Rails and DDNS

Piyush Chowhan
Hi,
Thanks for replying me back

Now I am facing this

when I run this command

rake db:create
FATAL:  role "root" is not permitted to log in
Couldn't create database for {"adapter"=>"postgresql", "encoding"=>"unicode", "database"=>"bookingsaround_diy_development", "pool"=>5, "username"=>"root", "password"=>"root12345678", "host"=>"localhost", "port"=>5432}
rake aborted!
PG::ConnectionBad: FATAL:  role "root" is not permitted to log in

Tasks: TOP => db:create




not permitted to log in?

On Tue, Aug 7, 2018 at 2:02 PM, Mike <[hidden email]> wrote:
Not sure I understand all of this but

As long as you can send some-new-app.com to your IP address and some-old-app.com to the same address it should not be a problem

You could use a CNAME record to forward both of these to myrouter.asuscomm.com which is your actual device

Once it gets there I assume you forward the traffic to your web host where it should still be receiving requests (Host: headers)  for some-old-app.com and some-new-app.com.

Then your web server should be directing the traffic to the correct rails app

It’s a bit difficult to diagnose without more information but hopefully this is a pointer

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c551662c-7fc2-4dda-967a-fe8e8fd7d2e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Thanks & Regards
Piyush Chowhan

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACL5Wfa4uB%3DU6zC%3Dd6%2B-XYAkoP3LFGJtcOiznNdUhnq8LJdKdQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: OT: Rails and DDNS

Piyush Chowhan
In reply to this post by Ralph Shnelvar
Sorry wrongly posted

On Monday, July 9, 2018 at 9:09:51 PM UTC+5:30, Ralph Shnelvar wrote:
Ruby on Rails Talk,

So I have an ASUS TM-AC1900 router that offers DDNS (Dynamic DNS).

I have a Rails app (call it some-old-app) and a domain (call it <a href="http://some-old-app.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsome-old-app.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGWV4lBorR5A4XiVwfGeMnjalJ0dg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsome-old-app.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGWV4lBorR5A4XiVwfGeMnjalJ0dg&#39;;return true;">some-old-app.com) and got it working with the ASUS router and its DDNS so that when a user invoked
 
<a style="font-family:&#39;Times New Roman&#39;;font-size:14pt" href="https://www.some-old-app.com/something" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.some-old-app.com%2Fsomething\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEGamPpEka4OmZUKPcvLO93xdcsEg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.some-old-app.com%2Fsomething\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEGamPpEka4OmZUKPcvLO93xdcsEg&#39;;return true;">https://www.some-old-app.com/something
everything worked.



Basically, in my SpiritDomains (SpiritDomains is my ISP) control panel, I set things up so that <a href="http://some-old-app.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsome-old-app.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGWV4lBorR5A4XiVwfGeMnjalJ0dg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsome-old-app.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGWV4lBorR5A4XiVwfGeMnjalJ0dg&#39;;return true;">some-old-app.com forwards requests to <a href="http://some-old-app.asuscomm.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsome-old-app.asuscomm.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFk02N31Ux2X9Wl4gp-SUsrITrsKw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsome-old-app.asuscomm.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFk02N31Ux2X9Wl4gp-SUsrITrsKw&#39;;return true;">some-old-app.asuscomm.com.

(*.<a href="http://asuscomm.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fasuscomm.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHkQko5bgTp04YVlyOipwsNmX2-GA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fasuscomm.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHkQko5bgTp04YVlyOipwsNmX2-GA&#39;;return true;">asuscomm.com is a free service provided by ASUS and it provides DDNS services for their TM-AC1900 router.)

Sadly, I didn't take enough notes so I could figure out how I got the ASUS DDNS service to work with
<a style="font-family:&#39;Times New Roman&#39;;font-size:14pt" href="https://www.some-old-app.com/something" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.some-old-app.com%2Fsomething\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEGamPpEka4OmZUKPcvLO93xdcsEg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.some-old-app.com%2Fsomething\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEGamPpEka4OmZUKPcvLO93xdcsEg&#39;;return true;">https://www.some-old-app.com/something


Fortunately, I backed up everything including my router settings.  I have no problems when restoring my router and when I do, my <a style="font-family:&#39;Times New Roman&#39;;font-size:14pt" href="https://www.some-old-app.com/something" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.some-old-app.com%2Fsomething\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEGamPpEka4OmZUKPcvLO93xdcsEg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.some-old-app.com%2Fsomething\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEGamPpEka4OmZUKPcvLO93xdcsEg&#39;;return true;">https://www.some-old-app.com/something works just fine.

I now have a new domain:
<a style="font-family:&#39;Times New Roman&#39;;font-size:14pt" href="http://www.some-new-app.com." target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.some-new-app.com.\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFbTw_fteEq3SICzdmW8Kky9_dmKw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.some-new-app.com.\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFbTw_fteEq3SICzdmW8Kky9_dmKw&#39;;return true;">www.some-new-app.com.  

When I modify
 1) my SpiritDomains settings so that it forwards
<a href="http://some-new-app.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsome-new-app.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFvaxVKGuCpSpx65Je2LDj49EXgyQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsome-new-app.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFvaxVKGuCpSpx65Je2LDj49EXgyQ&#39;;return true;">some-new-app.com to <a href="http://some-new-app.asuscomm.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsome-new-app.asuscomm.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6Q_c3wbHxzUeMpceJUV7ZSux3Rw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsome-new-app.asuscomm.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6Q_c3wbHxzUeMpceJUV7ZSux3Rw&#39;;return true;">some-new-app.asuscomm.com, and
 2) my router settings so that <a href="http://some-new-app.asuscomm.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsome-new-app.asuscomm.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6Q_c3wbHxzUeMpceJUV7ZSux3Rw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsome-new-app.asuscomm.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6Q_c3wbHxzUeMpceJUV7ZSux3Rw&#39;;return true;">some-new-app.asuscomm.com is registered with ASUS
then when I attempt to do a
<a style="font-family:&#39;Times New Roman&#39;;font-size:14pt" href="http://www.some-new-app.com/something" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.some-new-app.com%2Fsomething\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGD958JlD_r39Xi9bxSlklkRu4XoQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.some-new-app.com%2Fsomething\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGD958JlD_r39Xi9bxSlklkRu4XoQ&#39;;return true;">www.some-new-app.com/something my browser says that <a style="font-family:&#39;Times New Roman&#39;;font-size:14pt" href="http://www.some-old-app" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.some-old-app\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHCLFsFJhnhXFKtQp-wpIeoVE2Vsw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.some-old-app\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHCLFsFJhnhXFKtQp-wpIeoVE2Vsw&#39;;return true;">www.some-old-app.com can't be found.

Please note, I waited several hours before issuing
<a style="font-family:&#39;Times New Roman&#39;;font-size:14pt" href="http://www.some-new-app.com/something" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.some-new-app.com%2Fsomething\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGD958JlD_r39Xi9bxSlklkRu4XoQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.some-new-app.com%2Fsomething\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGD958JlD_r39Xi9bxSlklkRu4XoQ&#39;;return true;">www.some-new-app.com/something just in case there was an issue about DNS propagation.


I cannot for the life of me figure out how to get
<a style="font-family:&#39;Times New Roman&#39;;font-size:14pt" href="https://www.some-new-app.com/something" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.some-new-app.com%2Fsomething\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG9Lpdc04BVz0xF8YpIE_M6QvSjHQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.some-new-app.com%2Fsomething\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG9Lpdc04BVz0xF8YpIE_M6QvSjHQ&#39;;return true;">https://www.some-new-app.com/something to work.  I no longer need <a href="http://some-old-app.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsome-old-app.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGWV4lBorR5A4XiVwfGeMnjalJ0dg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsome-old-app.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGWV4lBorR5A4XiVwfGeMnjalJ0dg&#39;;return true;">some-old-app.com so the router's limitation of only one DDNS service does not matter to me.


Does anyone have knowledge of a DDNS service (it doesn't have to be free) with complete instructions on how to hook up a Rails app so that a user can invoke
<a style="font-family:&#39;Times New Roman&#39;;font-size:14pt" href="https://www.some-new-app.com/something" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.some-new-app.com%2Fsomething\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG9Lpdc04BVz0xF8YpIE_M6QvSjHQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.some-new-app.com%2Fsomething\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG9Lpdc04BVz0xF8YpIE_M6QvSjHQ&#39;;return true;">https://www.some-new-app.com/something without having to specify <a style="font-family:&#39;Times New Roman&#39;;font-size:14pt" href="https://www.some-new-app.Some-DDNS-Service.com/something" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.some-new-app.Some-DDNS-Service.com%2Fsomething\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHCzUeNsJVRf6HIkXOFSvn9sWePyQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.some-new-app.Some-DDNS-Service.com%2Fsomething\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHCzUeNsJVRf6HIkXOFSvn9sWePyQ&#39;;return true;">https://www.some-new-app.Some-DDNS-Service.com/something

Does anyone have experience with the free <a href="http://dynu.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdynu.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHukEPvnwNtUFWFuqQSSHaaR3ok9Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdynu.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHukEPvnwNtUFWFuqQSSHaaR3ok9Q&#39;;return true;">dynu.com service?  Does it slow things down appreciably?  Are there any downsides to using it?

Of course, if you have the answer to how to get the ASUS router to work, that would be even better.


Ralph Shnelvar

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c4ecd807-e0e3-44fd-8f07-94e96ccb7ff5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.