New commands to add and remove DNS entries
- Commands dns-add and dns-remove added to weave script - Updated documentation for WeaveDNS - Added test script for dns-add and dns-remove - Added IP address functions matching existing CIDR ones
This commit is contained in:
1 parent
432662bc86
commit
633d539b60
3 files changed
+107
-8
No files matched your search
+10
-2
@@ -153,11 +153,19 @@ link-local as per [RFC6762](https://tools.ietf.org/html/rfc6762),
|
||||
|
||||
If DNS is started after you've attached a container to the weave
|
||||
network, or you want to give the container a name in DNS *other* than
|
||||
its hostname, you can register it using the HTTP API:
|
||||
its hostname, you can register it using the `dns-add` command. If no
|
||||
FQDN is specified, it is derived from the container's configured
|
||||
hostname and domain. For example:
|
||||
|
||||
```bash
|
||||
$ docker start $shell2
|
||||
$ curl -X PUT "http://$dns_ip:6785/name/$shell2/10.2.1.27" -d fqdn=shell2.weave.local
|
||||
$ weave dns-add 10.2.1.27 $shell2 -h shell2.example.org
|
||||
```
|
||||
|
||||
The inverse operation can be carried out using the `dns-remove` command:
|
||||
|
||||
```bash
|
||||
$ weave dns-remove 10.2.1.27 $shell2
|
||||
```
|
||||
|
||||
### Registering multiple containers with the same name
|
||||
|
||||
Reference in new issue
Block a user