Skip to content

Instantly share code, notes, and snippets.

@toff63
Last active October 20, 2015 20:55
Show Gist options
  • Save toff63/9f7ca58defc508e2c7c1 to your computer and use it in GitHub Desktop.
Save toff63/9f7ca58defc508e2c7c1 to your computer and use it in GitHub Desktop.

Client config

eureka.shouldUseDns=true
eureka.eurekaServer.domainName=mydomain.com
archaius.deployment.region=us-west-2

Troubleshoot

Retrieve list of eureka nodes:

dig -t txt txt.us-west-2.mydomain.com
;; QUESTION SECTION:
;txt.us-west-2.mydomain.com. IN TXT

;; ANSWER SECTION:
txt.us-west-2.txt.us-west-2.mydomain.com. 60 IN TXT "us-west-2a.txt.us-west-2.mydomain.com" "us-west-2b.txt.us-west-2.mydomain.com" "us-west-2c.txt.us-west-2.mydomain.com"

Retrieve EC2 public DNS

dig -t txt txt.us-west-2a.txt.us-west-2.mydomain.com

;; QUESTION SECTION:
;txt.us-west-2a.txt.us-west-2.mydomain.com. IN TXT

;; ANSWER SECTION:
txt.us-west-2a.txt.us-west-2.mydomain.com. 53 IN TXT "ec2-57-11-164-101.us-west-2.compute.amazonaws.com"

Now you can confirm that this EC2 actually exists in your AWS console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment