diff options
author | 2019-01-28 02:54:50 +0900 | |
---|---|---|
committer | 2019-01-27 17:54:50 +0000 | |
commit | eb85af2240bbe1bb28a1ffffdbc77146fa28490d (patch) | |
tree | 55d5507adbfe5be69d417264bd13d908f6c078ca | |
parent | 48a8d6c75e667598fefda4a458b125df03862970 (diff) | |
download | coredns-eb85af2240bbe1bb28a1ffffdbc77146fa28490d.tar.gz coredns-eb85af2240bbe1bb28a1ffffdbc77146fa28490d.tar.zst coredns-eb85af2240bbe1bb28a1ffffdbc77146fa28490d.zip |
plugin/etcd: Fix REAME's ttl (#2502)
There are string ttls at commands at README.md.
But because `TTL` of `Service` is uint32, commands at README is wrong.
e.g.) `etcdctl put /skydns/local/skydns/x1 '{"host":"1.1.1.1","ttl":"60"}'`.
-rw-r--r-- | plugin/etcd/README.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugin/etcd/README.md b/plugin/etcd/README.md index e0e33bbfc..516b6bb48 100644 --- a/plugin/etcd/README.md +++ b/plugin/etcd/README.md @@ -152,8 +152,8 @@ If you query the zone name itself, you will receive the created `A` record: If you would like to use DNS RR for the zone name, you can set the following: ~~~ -% etcdctl put /skydns/local/skydns/x1 '{"host":"1.1.1.1","ttl":"60"}' -% etcdctl put /skydns/local/skydns/x2 '{"host":"1.1.1.2","ttl":"60"}' +% etcdctl put /skydns/local/skydns/x1 '{"host":"1.1.1.1","ttl":60}' +% etcdctl put /skydns/local/skydns/x2 '{"host":"1.1.1.2","ttl":60}' ~~~ If you query the zone name now, you will get the following response: @@ -168,8 +168,8 @@ If you query the zone name now, you will get the following response: If you would like to use `AAAA` records for the zone name too, you can set the following: ~~~ -% etcdctl put /skydns/local/skydns/x3 '{"host":"2003::8:1","ttl":"60"}' -% etcdctl put /skydns/local/skydns/x4 '{"host":"2003::8:2","ttl":"60"}' +% etcdctl put /skydns/local/skydns/x3 '{"host":"2003::8:1","ttl":60}' +% etcdctl put /skydns/local/skydns/x4 '{"host":"2003::8:2","ttl":60}' ~~~ If you query the zone name for `AAAA` now, you will get the following response: |