###############################################################
mesos-dns
###############################################################
http://www.zoues.com/index.php/2016/01/13/mesos-dns-1/
https://open.mesosphere.com/advanced-course/building-and-running-mesos-dns/
http://mesosphere.github.io/mesos-dns/docs/configuration-parameters.html
Install the Go programming language:
yum -y install golang git bind-utils
Then build the mesos-dns project:
mkdir ~/go
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
go get github.com/tools/godep
go get github.com/mesosphere/mesos-dns
cd $GOPATH/src/github.com/mesosphere/mesos-dns
godep go build .
cd /root/go/src/github.com/mesosphere/mesos-dns
mv config.json.sample config.json
[root@ctn-7-12 mesos-dns]# more config.json
{
"zk": "zk://172.16.7.11:2181,172.16.7.12:2181,172.16.7.13:2181/mesos",
"masters": ["172.16.7.11:5050","172.16.7.12:5050","172.16.7.13:5050"],
"refreshSeconds": 60,
"ttl": 60,
"domain": "mesos",
"port": 53,
"resolvers": ["219.150.32.132"],
"timeout": 5,
"httpon": true,
"dnson": true,
"httpport": 8123,
"externalon": true,
"listener": "172.16.7.12",
"SOAMname": "ns1.mesos",
"SOARname": "root.ns1.mesos",
"SOARefresh": 60,
"SOARetry": 600,
"SOAExpire": 86400,
"SOAMinttl": 60,
"IPSources": ["netinfo", "mesos", "host"]
}
./mesos-dns -config=config.json &
本文出自 “康建华” 博客,转载请与作者联系!
原文地址:http://michaelkang.blog.51cto.com/1553154/1759849