Skip to content

Instantly share code, notes, and snippets.

@johntdyer
Last active August 29, 2015 14:06
Show Gist options
  • Save johntdyer/c5bb2af5ee8c0e28cccb to your computer and use it in GitHub Desktop.
Save johntdyer/c5bb2af5ee8c0e28cccb to your computer and use it in GitHub Desktop.
# jdyer at MacBook-Pro.local in ~/Projects/consul [15:48:45]
$ 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: NXDOMAIN, id: 5926
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;_sip._udp.service.consul. IN SRV
;; Query time: 0 msec
;; SERVER: 127.0.0.1#8600(127.0.0.1)
;; WHEN: Fri Sep 12 15:49:04 EDT 2014
;; MSG SIZE rcvd: 42
{
"service": {
"name": "runtimes",
"port": 5060,
"service" : "sip",
"tags": [
"udp"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment