conradirwin / aws-name-server Goto Github PK
View Code? Open in Web Editor NEWDNS server that lets you look up ec2 instances by instance name
DNS server that lets you look up ec2 instances by instance name
if i have a tag for an instance like "mySuperAwesomeTag" using aws-name-server only lookups for "mysuperawesometag" will return results . whereas in the https://tools.ietf.org/html/rfc4343 sez to make things "case insensitive" . probably easy enough to.lower() everything then do a match .
--timball
this tool is great but i just created a patch that will allow arbitrary ec2 tags be used as a thing's dns name . seems shareworthy .
--timball
This is more of an informative issue. To get aws-name-server working with auth v4 requiring regions such as eu-central-1, you need to compile this using the following pull request.
When I follow the instructions I get:
wget http://gobuild.io/github.com/ConradIrwin/aws-name-server/master/linux/amd64 -O aws-name-server.zip
--2015-05-20 16:22:47-- http://gobuild.io/github.com/ConradIrwin/aws-name-server/master/linux/amd64
Resolving gobuild.io... 106.186.17.35
Connecting to gobuild.io|106.186.17.35|:80... connected.
HTTP request sent, awaiting response... 400 Bad Request
2015-05-20 16:22:49 ERROR 400: Bad Request.
I've been thinking of something like this and would be a heavy user. Right now I have a script that I run on EC2 instances that registers them with route53, but this dynamic lookup would be even more handy.
Some way to support a custom tag hierarchy. For example:
aws-name-server --tag-hierarchy Name,Role,Env ...
This would allow names like:
<name>.<role>.<env>.aws.example.com
-> skywalker.app.staging.aws.example.com
There are probably many edge cases in supporting such a structure. E.g. what to do with missing tags?, how to access the <n>
component of higher levels?
Running a query over the internet:
$ dig @awsdns.gaiagps.com 1.coreoscluster.role.aws.gaiagps.com CNAME [12:13:00]
; <<>> DiG 9.8.3-P1 <<>> @awsdns.gaiagps.com 1.coreoscluster.role.aws.gaiagps.com CNAME
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4488
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;1.coreoscluster.role.aws.gaiagps.com. IN CNAME
;; AUTHORITY SECTION:
aws.gaiagps.com. 59 IN SOA awsdns.gaiagps.com. me.cirw.in. 1470679987 86400 7200 86400 60
;; Query time: 141 msec
;; SERVER: 52.2.57.111#53(52.2.57.111)
;; WHEN: Mon Aug 8 12:13:06 2016
;; MSG SIZE rcvd: 107
Error in server log:
2016/08/08 18:13:07 CNAME "1.cOrEosCLUStEr.roLe.AWS.gaiAGpS.coM." XXXX:38638 (id=30398)
2016/08/08 18:13:07 ERROR: badly formed: 1.cOrEosCLUStEr.roLe.AWS.gaiAGpS.coM. []string{"cOrEosCLUStEr", "roLe", "AWS", "gaiAGpS", "coM", ""}
There are 4 ec2 instances tagged coreoscluster
The queries were working fine until recently.
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.