Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ubuntu@ip-174-0-47-194:~$ dig @127.0.0.1 -p 8600 _api.service.consul SRV
; <<>> DiG 9.10.3-P4-Ubuntu <<>> @127.0.0.1 -p 8600 _api.service.consul SRV
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15860
;; flags: qr aa rd; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 5
;; WARNING: recursion requested but not available
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;_api.service.consul. IN SRV
;; ANSWER SECTION:
_api.service.consul. 0 IN SRV 1 1 32768 ip-174-0-10-33.node.dc1.consul.
_api.service.consul. 0 IN SRV 1 1 5678 ip-174-0-38-101.node.dc1.consul.
;; ADDITIONAL SECTION:
ip-174-0-10-33.node.dc1.consul. 0 IN A 174.0.10.33
ip-174-0-10-33.node.dc1.consul. 0 IN TXT "consul-network-segment="
ip-174-0-38-101.node.dc1.consul. 0 IN A 174.0.38.101
ip-174-0-38-101.node.dc1.consul. 0 IN TXT "consul-network-segment="
;; Query time: 1 msec
;; SERVER: 127.0.0.1#8600(127.0.0.1)
;; WHEN: Tue Mar 06 17:59:48 UTC 2018
;; MSG SIZE rcvd: 253
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.