alessioalex / dynroute Goto Github PK
View Code? Open in Web Editor NEWNode CLI tool for dynamic DNS using Route53
Node CLI tool for dynamic DNS using Route53
Its only using the hardcoded default ~/.awsrc
(great package by the way!)
It doesn't pick the right one, it selects the first one all the time.
.
there are a couple of instance of
util.exit(errMsg);
which are actually referencing the built-in util
library, but I think the intention is to reference the .exit()
function defined in the module itself.
A fix would be to do something like this:
var ns = {};
ns.exit = function(s){
//...
};
ns.otherFunction = function(){
//...
if (err){
ns.exit("got an error");
}
};
module.exports = ns;
Hopefully people won't use their admin account for every operation on aws. Would appreciate if you can update the readme.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"route53:ListHostedZones",
"route53:ListResourceRecordSets",
"route53:ChangeResourceRecordSets",
"route53:CreateHostedZone",
"route53domains:*"
],
"Resource": [
"*"
]
}
]
}
If I turn dbg option on, I get the below error. Without the debug option, everything works fine.
shell> dynroute -d some.domain.com -o -dbg
/volume1/@appstore/node/lib/node_modules/dynroute/dynroute.js:109
if (domain.indexOf(zone.name) > -1) {
^
TypeError: Object true has no method 'indexOf'
at updateDns.zoneId (/volume1/@appstore/node/lib/node_modules/dynroute/dynroute.js:109:26)
at Array.forEach (native)
at iterate (/volume1/@appstore/node/lib/node_modules/dynroute/dynroute.js:108:25)
at hostedZones.forEach.rootZone (/volume1/@appstore/node/lib/node_modules/dynroute/dynroute.js:99:15)
at process._tickCallback (node.js:415:13)
It seems that http://ip-address.herokuapp.com/ip.json
is no longer available, but there is a new service at https://api.ipify.org?format=json
with the same result format (info here; it claims to be here for a while). You may want to update the default.
Example function here (maybe make a small npm module out of it):
https://github.com/chjj/tty.js/blob/master/lib/config.js#L232-L250
Any thoughts on how to get this to work with the private (in-VPC, or in EC2) IP rather than the web public IP?
Default to something more reliable than whatismyip.nodejitsu.com
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.