|
|
@ -48,7 +48,7 @@ To resolve names, Consul relies on a very specific format for queries.
|
|
|
|
There are fundamentally two types of queries: node lookups and service lookups.
|
|
|
|
There are fundamentally two types of queries: node lookups and service lookups.
|
|
|
|
A node lookup, a simple query for the address of a named node, looks like this:
|
|
|
|
A node lookup, a simple query for the address of a named node, looks like this:
|
|
|
|
|
|
|
|
|
|
|
|
<node>.node.<datacenter>.<domain>
|
|
|
|
<node>.node[.datacenter].<domain>
|
|
|
|
|
|
|
|
|
|
|
|
For example, if we have a "foo" node with default settings, we could look for
|
|
|
|
For example, if we have a "foo" node with default settings, we could look for
|
|
|
|
"foo.node.dc1.consul." The datacenter is an optional part of the FQDN: if not
|
|
|
|
"foo.node.dc1.consul." The datacenter is an optional part of the FQDN: if not
|
|
|
|