From 963916e990bccc288e41186ca35762c2c620f0df Mon Sep 17 00:00:00 2001 From: James Phillips Date: Wed, 20 Apr 2016 10:16:06 -0700 Subject: [PATCH] Clarifies default behavior of blank service addresses. --- website/source/docs/agent/http/agent.html.markdown | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/website/source/docs/agent/http/agent.html.markdown b/website/source/docs/agent/http/agent.html.markdown index 2ffb654350..dd41b1427a 100644 --- a/website/source/docs/agent/http/agent.html.markdown +++ b/website/source/docs/agent/http/agent.html.markdown @@ -400,7 +400,13 @@ in the case of a collision. `Tags`, `Address`, `Port` and `Check` are optional. -`Address` will default to that of the agent if not provided. +If `Address` is not provided or left empty, then the agent's address will be used +as the address for the service during DNS queries. When querying for services using +HTTP endpoints such as [service health](/docs/agent/http/health.html#health_service) +or [service catalog](/docs/agent/http/catalog.html#catalog_service) and encountering +an empty `Address` field for a service, use the `Address` field of the agent node +associated with that instance of the service, which is returned alongside the service +information. If `Check` is provided, only one of `Script`, `HTTP`, or `TTL` should be specified. `Script` and `HTTP` also require `Interval`. The created check will be named "service:\".