From 1472e35011bef3cd44f195b39704d56dc26873ee Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Tue, 1 Sep 2015 12:25:37 +0100 Subject: [PATCH] Update documentation --- site/weavedns.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/site/weavedns.md b/site/weavedns.md index a562c692..9a697f2c 100644 --- a/site/weavedns.md +++ b/site/weavedns.md @@ -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 `. +and domain simply by omitting `-h `, 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 ``` ## Resolve weaveDNS entries from host