From 8c2e66024482464bc2f1de55a20ca5458bf21975 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Tue, 8 Apr 2014 12:18:05 -0700 Subject: [PATCH] website: Clarify the DNS documentation --- website/source/docs/agent/dns.html.markdown | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/website/source/docs/agent/dns.html.markdown b/website/source/docs/agent/dns.html.markdown index d710da2c85..428f8dfc32 100644 --- a/website/source/docs/agent/dns.html.markdown +++ b/website/source/docs/agent/dns.html.markdown @@ -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