dynroute icon indicating copy to clipboard operation
dynroute copied to clipboard

Use private IP instead of public IP?

Open z-br opened this issue 10 years ago • 1 comments

Any thoughts on how to get this to work with the private (in-VPC, or in EC2) IP rather than the web public IP?

z-br avatar Aug 12 '15 23:08 z-br

I think you should use the official aws sdk for this, I haven't updated this module in a long time.

The docs for the official sdk are here: http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Route53.html

The method for changing records is this one: changeResourceRecordSets

The code for changing the record in dynroute can be found here (as an inspiration): https://github.com/alessioalex/dynroute/blob/master/dynroute.js#L138-L194

I haven't played with VPC myself, so I'm not sure what to tell you, but I found these 2 articles that may be of help:

http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/hosted-zone-private-creating.html

http://grokible.com/aws-vpc-topics-effective-use-of-route-53-private-hosted-zones/

Let me know how this works out!

alessioalex avatar Aug 13 '15 11:08 alessioalex