website: Clarify the DNS documentation

This commit is contained in:
Armon Dadgar 2014-04-08 12:18:05 -07:00
parent 19ce2e920d
commit 8c2e660244
1 changed files with 4 additions and 7 deletions

View File

@ -91,9 +91,10 @@ as a simple foundation for an auto-healing service oriented architecture.
For these lookups, both A and SRV records may be served. The SRV records will also
provide the port that a service is registered on, enabling services to avoid relying
on well-known ports.
on well-known ports. SRV records are only served if the client specifically requests
SRV records.
$ dig @127.0.0.1 -p 8600 consul.service.consul ANY
$ dig @127.0.0.1 -p 8600 consul.service.consul SRV
; <<>> DiG 9.8.3-P1 <<>> @127.0.0.1 -p 8600 consul.service.consul ANY
; (1 server found)
@ -104,15 +105,11 @@ on well-known ports.
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;consul.service.consul. IN ANY
;consul.service.consul. IN SRV
;; ANSWER SECTION:
consul.service.consul. 0 IN A 10.1.10.12
consul.service.consul. 0 IN SRV 1 1 8300 foobar.node.dc1.consul.
;; AUTHORITY SECTION:
consul. 0 IN SOA ns.consul. postmaster.consul. 1392836489 3600 600 86400 0
;; ADDITIONAL SECTION:
foobar.node.dc1.consul. 0 IN A 10.1.10.12