Open
Description
Hi,
I have an Ansible build which uses Registrator for container registration with Consul. As of yesterday new builds started using the Docker bridge IP and not the host IP of the Mesos slave.
I run Registrator with the following syntax (this has not changed in months)
docker run -d --name=registrator --net=host --volume=/var/run/weave.sock:/tmp/docker.sock glider labs/registrator:latest consul://x.x.x.x:xx
When I dig the domain I get:
[root@dc01-worker-01 ~]# dig @192.168.100.249 -p 8600 postgresql.service.dc01.han.solo
; <<>> DiG 9.9.4-RedHat-9.9.4-29.el7_2.3 <<>> @192.168.100.249 -p 8600 postgresql.service.dc01.han.solo
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16591
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;postgresql.service.dc01.han.solo. IN A
;; ANSWER SECTION:
postgresql.service.dc01.han.solo. 0 IN A 172.17.0.2
I am not sure why this is happening, as I have not set the -internal flag.