This commit is contained in:
Anita Buehrle committed 2016-03-30 17:05:26 -06:00
1 parent 254be128b0
commit 8a305ee189
11 files changed
+37 -37

No files matched your search

+9 -9
View File
@@ -4,22 +4,22 @@ layout: default
---
The weavedns service running on every host acts as the nameserver for
The weaveDNS service running on every host acts as the nameserver for
containers on that host. It learns about hostnames for local containers
from the proxy and from the `weave run` command.
If a hostname is in the `.weave.local` domain, then weavedns records the association of that
If a hostname is in the `.weave.local` domain, then weaveDNS records the association of that
name with the container's Weave Net IP address(es) in its in-memory
database, and then broadcasts the association to other Weave Net peers in the
cluster.
When weavedns is queried for a name in the `.weave.local` domain, it
When weaveDNS is queried for a name in the `.weave.local` domain, it
looks up the hostname in its memory database and responds with the IPs
of all containers for that hostname across the entire cluster.
###Basic Load Balancing and Fault Tolerance
Weavedns returns IP addresses in random order to facilitate basic
WeaveDNS returns IP addresses in random order to facilitate basic
load balancing and failure tolerance. Most client side resolvers sort
the returned addresses based on reachability, and place local addresses
at the top of the list (see [RFC 3484](https://www.ietf.org/rfc/rfc3484.txt)).
@@ -29,14 +29,14 @@ machine, the application receives that container's IP address.
Otherwise, the application receives the IP address of a random
container with the desired hostname.
When weavedns is queried for a name in a domain other than
When weaveDNS is queried for a name in a domain other than
`.weave.local`, it queries the host's configured nameserver, which is
the standard behaviour for Docker containers.
###Specifying a Different Docker Bridge Device
So that containers can connect to a stable and always routable IP
address, weavedns listens on port 53 to the Docker bridge device, which
address, weaveDNS listens on port 53 to the Docker bridge device, which
is assumed to be `docker0`. Some configurations may use a different
Docker bridge device. To supply a different bridge device, use the
environment variable `DOCKER_BRIDGE`, e.g.,
@@ -45,7 +45,7 @@ environment variable `DOCKER_BRIDGE`, e.g.,
$ sudo DOCKER_BRIDGE=someother weave launch
```
In the event that weavedns is launched in this way, it's important that
In the event that weaveDNS is launched in this way, it's important that
other calls to `weave` also specify the bridge device:
```bash
@@ -54,6 +54,6 @@ $ sudo DOCKER_BRIDGE=someother weave run ...
**See Also**
* [Using Weavedns](/site/weavedns/overview-using-weavedns.md)
* [Load Balancing with weavedns](/site/weavedns/load-balance-fault-weavedns.md)
* [Using WeaveDNS](/site/weavedns/overview-using-weavedns.md)
* [Load Balancing with weaveDNS](/site/weavedns/load-balance-fault-weavedns.md)
* [Managing Domain Entries](/site/weavedns/managing-domains-weavedns.md)
+2 -2
View File
@@ -1,12 +1,12 @@
---
title: Load Balancing and Fault Resilience with weavedns
title: Load Balancing and Fault Resilience with weaveDNS
layout: default
---
It is permissible to register multiple containers with the same name:
weavedns returns all addresses, in a random order, for each request.
weaveDNS returns all addresses, in a random order, for each request.
This provides a basic load balancing capability.
Expanding the
+1 -1
View File
@@ -47,5 +47,5 @@ link-local as per [RFC6762](https://tools.ietf.org/html/rfc6762),
* [How Weave Finds Containers](/site/weave-docker-api/how-works-weavedns.md)
* [Load Balancing and Fault Resilience with weavedns](/site/weave-docker-api/load-balance-fault-weavedns.md)
* [Load Balancing and Fault Resilience with WeaveDNS](/site/weave-docker-api/load-balance-fault-weavedns.md)
* [Managing Domain Entries](/site/weavedns/managing-entries-weavedns.md)
+3 -3
View File
@@ -7,7 +7,7 @@ layout: default
The following topics are discussed:
* [Adding and removing extra DNS entries](#add-remove)
* [Resolving Weavedns entries from the Host](#resolve-weavedns-entries-from-host)
* [Resolving WeaveDNS entries from the Host](#resolve-weavedns-entries-from-host)
* [Hot-swapping Service Containers](#hot-swapping)
* [Retaining DNS Entries When Containers Stop](#retain-stopped)
* [Configuring a Custom TTL](#ttl)
@@ -48,7 +48,7 @@ $ weave dns-add 192.128.16.45 -h db.weave.local
Note that such records get removed when stopping the weave peer on
which they were added.
### <a name="resolve-weavedns-entries-from-host"></a>Resolving Weavedns Entries From the Host
### <a name="resolve-weavedns-entries-from-host"></a>Resolving WeaveDNS Entries From the Host
You can resolve entries from any host running weaveDNS with `weave
dns-lookup`:
@@ -83,5 +83,5 @@ weaveDNS instance will receive.
**See Also**
* [How Weave Finds Containers](/site/weave-docker-api/how-works-weavedns.md)
* [Load Balancing and Fault Resilience with weavedns](/site/weave-docker-api/load-balance-fault-weavedns.md)
* [Load Balancing and Fault Resilience with WeaveDNS](/site/weave-docker-api/load-balance-fault-weavedns.md)
* [Managing Domains](/site/weavedns/managing-domains-weavedns.md)
+9 -9
View File
@@ -1,5 +1,5 @@
---
title: Using Weavedns
title: Using WeaveDNS
layout: default
---
@@ -10,7 +10,7 @@ the containers hostnames and then tell other containers to connect to those name
Unlike Docker 'links', this requires no code changes and it works across
hosts.
Weavedns is deployed as an embedded service within the Weave router.
WeaveDNS is deployed as an embedded service within the Weave router.
The service is automatically started when the router is launched:
```bash
@@ -18,12 +18,12 @@ host1$ weave launch
host1$ eval $(weave env)
```
Weavedns related configuration arguments can be passed to `launch`.
WeaveDNS related configuration arguments can be passed to `launch`.
Application containers use weavedns automatically if it is
Application containers use weaveDNS automatically if it is
running when they are started. They use it for name
resolution, and will register themselves if they either have a
hostname in the weavedns domain (`weave.local` by default) or are given an explicit container name:
hostname in the weaveDNS domain (`weave.local` by default) or are given an explicit container name:
```bash
host1$ docker run -dti --name=pingme ubuntu
@@ -34,14 +34,14 @@ root@ubuntu:/# ping pingme
> **Note** If both hostname and container name are specified at
the same time, the hostname takes precedence. In this circumstance, if
the hostname is not in the weavedns domain, the container is *not*
registered, but it will still use weavedns for resolution.
the hostname is not in the weaveDNS domain, the container is *not*
registered, but it will still use weaveDNS for resolution.
To disable an application container's use of weavedns, add the
To disable an application container's use of weaveDNS, add the
`--without-dns` option to `weave run` or `weave launch-proxy`. To
disable weaveDNS itself, launch weave with the `--no-dns` option.
**See Also**
* [How Weave Finds Containers](/site/weave-docker-api/how-works-weavedns.md)
* [Load Balancing and Fault Resilience with weavedns](/site/weave-docker-api/load-balance-fault-weavedns.md)
* [Load Balancing and Fault Resilience with WeaveDNS](/site/weave-docker-api/load-balance-fault-weavedns.md)
+1 -1
View File
@@ -28,7 +28,7 @@ DNS:
The first section covers the router; see the [troubleshooting
guide](/site/troubleshooting.md#weave-status) for more details.
The 'Service: dns' section is pertinent to weavedns, and includes:
The 'Service: dns' section is pertinent to weaveDNS, and includes:
* The local domain suffix which is being served
* The list of upstream servers used for resolving names not in the local domain