Skip to content

Instantly share code, notes, and snippets.

@johntdyer
Forked from armon/runtime.json
Created September 12, 2014 19:57
Show Gist options
  • Save johntdyer/9e07d180657536423109 to your computer and use it in GitHub Desktop.
Save johntdyer/9e07d180657536423109 to your computer and use it in GitHub Desktop.
# jdyer at MacBook-Pro.local in ~/Projects/consul [15:56:56]
$ dig @localhost -p 8600 _sip._udp.service.consul srv
; <<>> DiG 9.10.0-P2 <<>> @localhost -p 8600 _sip._udp.service.consul srv
; (3 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55514
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;_sip._udp.service.consul. IN SRV
;; ANSWER SECTION:
_sip._udp.service.consul. 0 IN SRV 1 1 5060 MacBook-Pro.local.node.dc1.consul.
;; ADDITIONAL SECTION:
MacBook-Pro.local.node.dc1.consul. 0 IN A 192.168.1.36
;; Query time: 1 msec
;; SERVER: 127.0.0.1#8600(127.0.0.1)
;; WHEN: Fri Sep 12 15:57:02 EDT 2014
;; MSG SIZE rcvd: 168
{
"service": {
"id": "runtimes",
"name": "sip",
"port": 5060,
"tags": [
"udp"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment