# 1. Close the default DNSMASQ service and kill the process
Systemctl Stop dnsmasq.servicesystemctl disable Dnsmasq.serviceps-ef|grep dnsmasq|cut-c 10-15| Xargs kill-9
# 2. Download or compile the generated Mesos-dns file as per the relevant instructions
GODEP Go build Install/... #将mesos-dns move to the/usr/bin directory sudo cp mesos-dns/usr/bin
# 3. New configuration file Config.json
{"ZK": "Zk://192.168.1.110:2181/mesos", "Refreshseconds": "TTL": "$", "domain": "Mesos", "Port": +, "resolvers": [" 114.114.114.114 "," 8.8.8.8 "]," timeout ": 5," email ":" Root.mesos-dns.mesos "}
# 4. Start the Mesos-dns service with the root user
Nohup mesos-dns-config Config.json &
# 5. Verify
# Marathon in App ID TV1, two instances
Dig Tv1.marathon.mesos
# query Output >>>
Tv1.marathon.mesos. A 10.0.54.4
Tv1.marathon.mesos. A 10.0.54.3
# Other: Marathon when the container is stretched, there will be a certain delay problem
Working record three-mesos-dns