Working record three-mesos-dns

Source: Internet
Author: User

# 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.