Merge pull request #740 from awh/revise_weavedns_docs_further
Address weaveDNS doc review comments
This commit is contained in:
commit
a77ffc4ca5
1 file changed
+11
-4
+11
-4
@@ -84,18 +84,25 @@ use the environment variable `DOCKER_BRIDGE`, e.g.,
|
|||||||
$ sudo DOCKER_BRIDGE=someother weave launch-dns 10.2.254.1/24
|
$ sudo DOCKER_BRIDGE=someother weave launch-dns 10.2.254.1/24
|
||||||
```
|
```
|
||||||
|
|
||||||
|
In the event that weaveDNS is launched in this way, it's important that
|
||||||
|
other calls to `weave` also specify the bridge device:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ sudo DOCKER_BRIDGE=someother weave run --with-dns ...
|
||||||
|
```
|
||||||
|
|
||||||
## <a name="add-remove"></a>Adding and removing extra DNS entries
|
## <a name="add-remove"></a>Adding and removing extra DNS entries
|
||||||
|
|
||||||
If you want to give the container a name in DNS *other* than its
|
If you want to give the container a name in DNS *other* than its
|
||||||
hostname, you can register it using the `dns-add` command. For example:
|
hostname, you can register it using the `dns-add` command. For example:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker start $shell2
|
$ shell2=(weave run 10.2.1.27/24 -ti ubuntu)
|
||||||
$ weave dns-add 10.2.1.27 $shell2 -h shell2.example.org
|
$ weave dns-add 10.2.1.28 $shell2 -h pingme2.weave.local
|
||||||
```
|
```
|
||||||
|
|
||||||
If no FQDN is specified, it is derived from the container's configured
|
You can also use `dns-add` to add the container's configured hostname
|
||||||
hostname and domain.
|
and domain, simply by omitting `-h <fqdn>`.
|
||||||
|
|
||||||
The inverse operation can be carried out using the `dns-remove` command:
|
The inverse operation can be carried out using the `dns-remove` command:
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user