Update documentation

This commit is contained in:
Adam Harrison committed 2015-09-03 09:59:37 +01:00
1 parent 58ea422ea2
commit 1472e35011
1 file changed
+6 -4
+6 -4
View File
@@ -148,18 +148,20 @@ 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:
```bash
$ C=$(docker run -e WEAVE_CIDR=10.2.1.27/24 -ti ubuntu)
$ weave dns-add 10.2.1.27 $C -h pingme2.weave.local
$ C=$(docker run -ti ubuntu)
$ weave dns-add $C -h pingme2.weave.local
```
You can also use `dns-add` to add the container's configured hostname
and domain, simply by omitting `-h <fqdn>`.
and domain simply by omitting `-h <fqdn>`, or specify additional IP
addresses to be registered against the container's hostname e.g.
`weave dns-add 10.2.1.27 $C`.
The inverse operation can be carried out using the `dns-remove`
command:
```bash
$ weave dns-remove 10.2.1.27 $C
$ weave dns-remove $C
```
## <a name="resolve-weavedns-entries-from-host"></a>Resolve weaveDNS entries from host