Strip trailing period from hostname generated from weavedns domain.

We strip at the calling point rather than in the server, because DNS
servers do see the domain as ending with a '.'  representing the root.
This commit is contained in:
Bryan Boreham committed 2015-06-16 10:26:11 +01:00
1 parent dd9adf6a65
commit 79db00a90e
3 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
. ./config.sh
NAME=c1
DOMAIN=weave.local.
DOMAIN=weave.local
HOSTNAME=$NAME-hostname.$DOMAIN
# Docker inspect hostname + domainname of container $2 on host $1