website: Clarify the DNS documentation

This commit is contained in:
Armon Dadgar 2014-04-08 12:18:05 -07:00
parent aa49718cc9
commit 549e78e005
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 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 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 ; <<>> DiG 9.8.3-P1 <<>> @127.0.0.1 -p 8600 consul.service.consul ANY
; (1 server found) ; (1 server found)
@ -104,15 +105,11 @@ on well-known ports.
;; WARNING: recursion requested but not available ;; WARNING: recursion requested but not available
;; QUESTION SECTION: ;; QUESTION SECTION:
;consul.service.consul. IN ANY ;consul.service.consul. IN SRV
;; ANSWER SECTION: ;; 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. 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: ;; ADDITIONAL SECTION:
foobar.node.dc1.consul. 0 IN A 10.1.10.12 foobar.node.dc1.consul. 0 IN A 10.1.10.12