From 084e6d6119aeb42b3bb5af8134a98ce74d1507b3 Mon Sep 17 00:00:00 2001 From: Alvaro Saurin Date: Mon, 20 Apr 2015 17:52:16 +0200 Subject: [PATCH] Documented the local domain argument --- weavedns/README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/weavedns/README.md b/weavedns/README.md index 83576f7c..2e68699b 100644 --- a/weavedns/README.md +++ b/weavedns/README.md @@ -134,6 +134,20 @@ that you can use unqualified hostnames. Use `--dns-search=.` to make the resolver use the container's domain, or e.g., `--dns-search=weave.local` to make it look in `weave.local`. +### Using a different local domain + +By default, WeaveDNS uses `weave.local.` as the domain for local +records. In general users do not need to change this domain, but you +can force WeaveDNS to use a different domain by launching it +with the `--localDomain` argument. For example, + +```bash +$ weave launch-dns 10.2.254.1/24 --localDomain="mycompany.local." +``` + +The local domain should end with the `local.` suffix (it is +not strictly neccessary). + ### Adding containers to DNS If DNS is started after you've attached a container to the weave