Skip to content

Instantly share code, notes, and snippets.

@dontrebootme
Last active December 16, 2015 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dontrebootme/9402eec137ee7882789c to your computer and use it in GitHub Desktop.
Save dontrebootme/9402eec137ee7882789c to your computer and use it in GitHub Desktop.
# Query Consul DNS API for SRV records of healthy microbot services
➜ dig +short @10.7.0.15 -p 8600 microbot-web-microbot.service.nomad-intro.consul SRV
1 1 48909 docker2.node.nomad-intro.consul.
1 1 21888 docker3.node.nomad-intro.consul.
1 1 57285 docker1.node.nomad-intro.consul.
# Access one of the result via IP:port
Open browser to either:
10.7.0.21:57285
10.7.0.22:48909
10.7.0.23:21888
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment