From e8f970521137bf83d530d4af2a059ad8f36d591e Mon Sep 17 00:00:00 2001 From: Michael Bridgen Date: Mon, 20 Oct 2014 18:39:40 +0100 Subject: [PATCH] Updated README re local domain --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4bd95a25..45e05318 100644 --- a/README.md +++ b/README.md @@ -25,20 +25,20 @@ for other containers: ```bash $ dns_ip=$(docker inspect --format='{{ .NetworkSettings.IPAddress }}' weavedns) -$ shell1=$(weave run 10.0.1.2/24 --dns=$dns_ip -t ubuntu /bin/bash) +$ shell1=$(weave run 10.0.1.2/24 -h shell.weave.local --dns=$dns_ip -t ubuntu /bin/bash) ``` To associate a hostname with an IP, use an HTTP PUT to the DNS server: ```bash $ shell1_ip=$(docker inspect --format='{{ .NetworkSettings.IPAddress }}' $shell1) -$ curl -X PUT "http://$dns_ip:6785/name/$shell1/10.0.1.2?fqdn=shell1.weave&routing_prefix=24&local_ip=$shell1_ip" +$ curl -X PUT "http://$dns_ip:6785/name/$shell1/10.0.1.2?fqdn=shell1.weave.local&routing_prefix=24&local_ip=$shell1_ip" ``` You should now be able to look up the name: ```bash -$ dig @$dns_ip +short shell1.weave +$ dig @$dns_ip +short shell1.weave.local ``` By default, the server will also watch docker events and remove