Open afraisse opened 8 years ago
Note : I tried installing mesos-dns and running it as a shell command instead. This lays an other issue : mesos-dns returns 127.0.1.1 instead of the public ip address, causing the web-app not being able to reach the database.
See dig output :
;; ADDITIONAL SECTION:
webdis-site-m-shop-etydz-s0.marathon.slave.mesos. 60 IN A 127.0.1.1
Actually this doesn't work with mesos 0.24.1 either.
Even with the vm IP in /etc/resolv.conf, mesos-dns fails :
vagrant@mesos:/vagrant/m-shop$ dig _webdis-site-m-shop._tcp.marathon.mesos SRV
; <<>> DiG 9.9.5-3ubuntu0.4-Ubuntu <<>> _webdis-site-m-shop._tcp.marathon.mesos SRV ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61720 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION: ;_webdis-site-m-shop._tcp.marathon.mesos. IN SRV
;; Query time: 0 msec ;; SERVER: 10.141.141.10#53(10.141.141.10) ;; WHEN: Tue Apr 12 17:07:35 UTC 2016 ;; MSG SIZE rcvd: 57