viewdns

module
v0.0.0-...-d6adbaf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2019 License: Apache-2.0

README

#拓扑架构

    Client
      |
      |
     VUE
      |
    Golang

#环境 coredns主机 172.20.52.36 etcd主机 172.20.57.58

#运行coredns ./coredns -conf corefile

#运行etcd #注意etcd的版本3.4.2 API版本3.4 ./etcd
--name s1
--data-dir /etcd-data
--listen-client-urls http://0.0.0.0:2379
--advertise-client-urls http://0.0.0.0:2379
--listen-peer-urls http://0.0.0.0:2380
--initial-advertise-peer-urls http://0.0.0.0:2380
--initial-cluster s1=http://0.0.0.0:2380
--initial-cluster-token tkn
--initial-cluster-state new
--log-level info
--logger zap
--log-outputs stder

#put上传etcd数据 ./etcdctl put /skydns/local/skydns/ '{"host":"1.1.1.1","ttl":60}'

#list列出所有的key/value ./etcdctl get /skydns --prefix --keys-only=true

#delete所有key/value ./etcdctl del /skydns --prefix

#测试 dig skydns.local @172.20.52.36 +short

#监控 http://172.20.52.36:3000/

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL