为什么mesos dns不提供srv答案?

mec1mxoz  于 2021-06-26  发布在  Mesos
关注(0)|答案(1)|浏览(444)

我有一个流浪者的盒子,它是运行mesos,马拉松和chronos(公开 Package 为 playa-mesos ). 这是一个健全的环境(我已经定制了192.168。。ip地址),我可以启动不同的应用程序,包括docker集装箱的应用程序。我尝试了一个新的演示,其中有一个dns要求,mesos应用程序启动定义如下:

{
 "id": "mesos-dns",
 "instances": 1,
 "cpus": 0.2,
 "mem": 50,
 "cmd": "/mesos-dns -config=/config.json",
 "container": {
  "type": "DOCKER",
  "docker": {
  "image": "mesosphere/mesos-dns:latest",
  "network": "HOST"
},
"volumes": [
  {
    "containerPath": "/config.json",
    "hostPath": "/etc/mesos-dns/config.json",
    "mode": "RO"
  }
]
}
}

这个 config.json 如下所示:

{
"zk": "zk://127.0.0.1:2181/mesos",
"refreshSeconds": 60,
"ttl": 60,
"domain": "mesos",
"port": 53,
"resolvers": ["10.0.2.3"],
"timeout": 5,
"email": "root.mesos-dns.mesos"
}

这个 /etc/resolv.conf 包含 nameserver 10.0.2.3 下面是 dig 响应我的dns查询;二者如下所示:-

dig _webdis-site-m-shop._tcp.marathon.mesos SRV

; <<>> DiG 9.9.5-3ubuntu0.1-Ubuntu <<>> _webdis-site-m-shop._tcp.marathon.mesos SRV
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 4759
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 8192
;; QUESTION SECTION:
;_webdis-site-m-shop._tcp.marathon.mesos. IN SRV

;; AUTHORITY SECTION:
.                       56521   IN      SOA     a.root-servers.net. nstld.verisign-grs.com. 2016021800 1
800 900 604800 86400

;; Query time: 155 msec
;; SERVER: 10.0.2.3#53(10.0.2.3)
;; WHEN: Thu Feb 18 13:38:21 UTC 2016
;; MSG SIZE  rcvd: 143`

如你所见,没有 ANSWER 以及现状 NXDOMAIN 意味着此查询导致一个不存在的域。
有人能帮我修一下吗?
蒂亚。

uyto3xhc

uyto3xhc1#

现在已修复。我从其他的帖子中得到了一些想法。我已经更改了ip地址等的ootb设置。。。大体上,我添加了127.0.0.1环回ip addr,virtualbox生成的ip addr(在我的例子中是192.168.x.y),并保留了现有的nameserver条目。现在,dig命令的结果是:-

dig _webdis-site-m-shop._tcp.marathon.mesos SRV

; <<>> DiG 9.9.5-3ubuntu0.1-Ubuntu <<>> _webdis-site-m-shop._tcp.marathon.mesos SRV
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6284
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:
;_webdis-site-m-shop._tcp.marathon.mesos. IN SRV

;; ANSWER SECTION:
_webdis-site-m-shop._tcp.marathon.mesos. 60 IN SRV 0 0 31720 webdis-site-m-shop-39847-s0.marathon.mesos.

;; ADDITIONAL SECTION:
webdis-site-m-shop-39847-s0.marathon.mesos. 60 IN A 192.168.56.106

;; Query time: 2 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Feb 18 16:55:57 UTC 2016
;; MSG SIZE  rcvd: 216

相关问题