【问题标题】:Setting Mesos DNS on ubuntu在 ubuntu 上设置 Mesos DNS
【发布时间】:2015-11-11 21:52:31
【问题描述】:

在玩了几个星期的容器后,我正在尝试设置 Mesos DNS。 我在使用 DNS 时遇到了一些麻烦,即使它被称为“轻而易举”:-s 按照文档: https://mesosphere.github.io/mesos-dns/docs/

https://www.youtube.com/watch?v=Ir3oo62I8n0

http://programmableinfrastructure.com/guides/service-discovery/mesos-dns-haproxy-marathon/

我遇到了几个问题,第一个是端口 53 被我的 ubuntu 14.04 系统下的 dnsmask 使用:

$ sudo docker run --net=host  -v "/etc/mesos-dns/config.json:/config.json" mesosphere/mesos-dns /mesos-dns -config=/config.json
ERROR: 2015/11/11 13:30:34 generator.go:74: no master
ERROR: 2015/11/11 13:30:34 main.go:65: DNS server failed: Failed to setup "tcp" server: listen tcp 0.0.0.0:53: bind: address already in use

$ sudo netstat -tulpn | grep 53
tcp        0      0 127.0.1.1:53            0.0.0.0:*               LISTEN      1866/dnsmasq    
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           553/avahi-daemon: r
udp        0      0 0.0.0.0:40367           0.0.0.0:*                           553/avahi-daemon: r
udp        0      0 127.0.1.1:53            0.0.0.0:*                           1866/dnsmasq    
udp6       0      0 :::5353                 :::*                                553/avahi-daemon: r
udp6       0      0 :::60577                :::*                                553/avahi-daemon: r

我不确定下一步该做什么?

我也看过:

Setup Mesos-DNS dockerized on a mesos cluster

【问题讨论】:

    标签: ubuntu dns docker mesos


    【解决方案1】:

    去掉 dnsmasq:sudo /etc/init.d/dnsmasq stop,然后端口 53 可用于 Mesos-DNS。

    【讨论】:

    • 这不会杀死我所有的网络资源吗?喜欢wifi访问?
    • 是的,这有点太激进了,抱歉。正在更新帖子。
    • 显然您在连接到 Mesos Master 时也遇到了问题?如果不将显式端口号传递给所有想要使用 Mesos DNS 的“客户端应用程序”,那么将端口设置为 54 可能无法正常工作......
    • @Tobi 这就是为什么我建议摆脱 dnsmasq ... ;)
    • 我现在在一个 ubuntu 服务器上。 [sudo /etc/init.d/dnsmasq stop] 甚至不起作用 => [sudo: /etc/init.d/dnsmasq: command not found]
    猜你喜欢
    • 2016-01-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-01-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多