{"action":"created","issue":{"url":"https://api.github.com/repos/mesosphere/mesos-dns/issues/126","labels_url":"https://api.github.com/repos/mesosphere/mesos-dns/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/mesosphere/mesos-dns/issues/126/comments","events_url":"https://api.github.com/repos/mesosphere/mesos-dns/issues/126/events","html_url":"https://github.com/mesosphere/mesos-dns/issues/126","id":68095194,"number":126,"title":"Generator is re-using names for A records","user":{"login":"JeffBurdette","id":11924832,"avatar_url":"https://avatars.githubusercontent.com/u/11924832?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffBurdette","html_url":"https://github.com/JeffBurdette","followers_url":"https://api.github.com/users/JeffBurdette/followers","following_url":"https://api.github.com/users/JeffBurdette/following{/other_user}","gists_url":"https://api.github.com/users/JeffBurdette/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffBurdette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffBurdette/subscriptions","organizations_url":"https://api.github.com/users/JeffBurdette/orgs","repos_url":"https://api.github.com/users/JeffBurdette/repos","events_url":"https://api.github.com/users/JeffBurdette/events{/privacy}","received_events_url":"https://api.github.com/users/JeffBurdette/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mesosphere/mesos-dns/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"kozyraki","id":2906213,"avatar_url":"https://avatars.githubusercontent.com/u/2906213?v=3","gravatar_id":"","url":"https://api.github.com/users/kozyraki","html_url":"https://github.com/kozyraki","followers_url":"https://api.github.com/users/kozyraki/followers","following_url":"https://api.github.com/users/kozyraki/following{/other_user}","gists_url":"https://api.github.com/users/kozyraki/gists{/gist_id}","starred_url":"https://api.github.com/users/kozyraki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kozyraki/subscriptions","organizations_url":"https://api.github.com/users/kozyraki/orgs","repos_url":"https://api.github.com/users/kozyraki/repos","events_url":"https://api.github.com/users/kozyraki/events{/privacy}","received_events_url":"https://api.github.com/users/kozyraki/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-04-13T13:22:23Z","updated_at":"2015-04-13T14:40:48Z","closed_at":null,"body":"It appears that mesos-dns is re-using the same hostname for some A records.  Below is the log (in -v=2 mode) you will see that mesos-dns is assigning dbbuilderagent-s1.marathon.mesos to both mesos-01.my.net (192.168.55.1) and mesos-05.my.net (192.168.55.5).    It should have created a dbbuilder-agent-s3.marathon.mesos for 192.168.55.5 instead of reusing dbbuilder-agent-s1.marathon.mesos.  This is obviously wrong and will lead to issues as shown in the DNS query below -- where mesos-05's ports appear to be on mesos-01.\r\n\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:166: Zookeeper says the leader is:  mesos-01.my.net:5050\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:127: reloading from master mesos-01.my.net\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:131: Warning: master changed to mesos-01.my.net\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:431: [A]     dbbuilderagent.marathon.mesos.: mesos-03.my.net\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:431: [A]     dbbuilderagent-s2.marathon.mesos.: mesos-03.my.net\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:431: [SRV]   _dbbuilderagent._tcp.marathon.mesos.: dbbuilderagent-s2.marathon.mesos.:31793\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:431: [SRV]   _dbbuilderagent._udp.marathon.mesos.: dbbuilderagent-s2.marathon.mesos.:31793\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:431: [SRV]   _dbbuilderagent._tcp.marathon.mesos.: dbbuilderagent-s2.marathon.mesos.:31794\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:431: [SRV]   _dbbuilderagent._udp.marathon.mesos.: dbbuilderagent-s2.marathon.mesos.:31794\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:431: [A]     dbbuilderagent.marathon.mesos.: mesos-01.my.net\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:431: [A]     dbbuilderagent-s1.marathon.mesos.: mesos-01.my.net\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:431: [SRV]   _dbbuilderagent._tcp.marathon.mesos.: dbbuilderagent-s1.marathon.mesos.:31858\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:431: [SRV]   _dbbuilderagent._udp.marathon.mesos.: dbbuilderagent-s1.marathon.mesos.:31858\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:431: [SRV]   _dbbuilderagent._tcp.marathon.mesos.: dbbuilderagent-s1.marathon.mesos.:31859\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:431: [SRV]   _dbbuilderagent._udp.marathon.mesos.: dbbuilderagent-s1.marathon.mesos.:31859\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:431: [A]     dbbuilderagent.marathon.mesos.: mesos-05.my.net\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:431: [A]     dbbuilderagent-s1.marathon.mesos.: mesos-05.my.net\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:431: [SRV]   _dbbuilderagent._tcp.marathon.mesos.: dbbuilderagent-s1.marathon.mesos.:31467\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:431: [SRV]   _dbbuilderagent._udp.marathon.mesos.: dbbuilderagent-s1.marathon.mesos.:31467\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:431: [SRV]   _dbbuilderagent._tcp.marathon.mesos.: dbbuilderagent-s1.marathon.mesos.:31468\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:431: [SRV]   _dbbuilderagent._udp.marathon.mesos.: dbbuilderagent-s1.marathon.mesos.:31468\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:431: [A]     dbbuilderagent.marathon.mesos.: mesos-04.my.net\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:431: [A]     dbbuilderagent-s24.marathon.mesos.: mesos-04.my.net\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:431: [SRV]   _dbbuilderagent._tcp.marathon.mesos.: dbbuilderagent-s24.marathon.mesos.:31612\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:431: [SRV]   _dbbuilderagent._udp.marathon.mesos.: dbbuilderagent-s24.marathon.mesos.:31612\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:431: [SRV]   _dbbuilderagent._tcp.marathon.mesos.: dbbuilderagent-s24.marathon.mesos.:31613\r\n    VERY VERBOSE: 2015/04/13 08:35:51 generator.go:431: [SRV]   _dbbuilderagent._udp.marathon.mesos.: dbbuilderagent-s24.marathon.mesos.:31613\r\n\r\nThe resulting DNS query is:\r\n\r\n    ;; QUESTION SECTION:\r\n    ;_dbbuilderagent._tcp.marathon.mesos. IN        SRV\r\n    \r\n    ;; ANSWER SECTION:\r\n    _dbbuilderagent._tcp.marathon.mesos. 60 IN SRV  0 0 31858 dbbuilderagent-s1.marathon.mesos.\r\n    _dbbuilderagent._tcp.marathon.mesos. 60 IN SRV  0 0 31859 dbbuilderagent-s1.marathon.mesos.\r\n    _dbbuilderagent._tcp.marathon.mesos. 60 IN SRV  0 0 31467 dbbuilderagent-s1.marathon.mesos.\r\n    _dbbuilderagent._tcp.marathon.mesos. 60 IN SRV  0 0 31468 dbbuilderagent-s1.marathon.mesos.\r\n    _dbbuilderagent._tcp.marathon.mesos. 60 IN SRV  0 0 31793 dbbuilderagent-s2.marathon.mesos.\r\n    _dbbuilderagent._tcp.marathon.mesos. 60 IN SRV  0 0 31794 dbbuilderagent-s2.marathon.mesos.\r\n    _dbbuilderagent._tcp.marathon.mesos. 60 IN SRV  0 0 31612 dbbuilderagent-s24.marathon.mesos.\r\n    _dbbuilderagent._tcp.marathon.mesos. 60 IN SRV  0 0 31613 dbbuilderagent-s24.marathon.mesos.\r\n\r\n    ;; ADDITIONAL SECTION:\r\n    dbbuilderagent-s2.marathon.mesos. 60 IN A       192.168.55.3\r\n    dbbuilderagent-s2.marathon.mesos. 60 IN A       192.168.55.3\r\n    dbbuilderagent-s1.marathon.mesos. 60 IN A       192.168.55.1\r\n    dbbuilderagent-s1.marathon.mesos. 60 IN A       192.168.55.1\r\n    dbbuilderagent-s1.marathon.mesos. 60 IN A       192.168.55.1\r\n    dbbuilderagent-s1.marathon.mesos. 60 IN A       192.168.55.1\r\n    dbbuilderagent-s24.marathon.mesos. 60 IN A      192.168.55.4\r\n    dbbuilderagent-s24.marathon.mesos. 60 IN A      192.168.55.4\r\n\r\nBelow you can see what marathon says about the hosts and ports:\r\n\r\n![marathon-dbbuilderagent](https://cloud.githubusercontent.com/assets/11924832/7116149/45509806-e1bd-11e4-882f-02920baa7160.png)\r\n\r\nRunning mesos-dns v0.1.1 that was pulled on April 2, 2015.\r\n\r\n    [root@mesos-01 mesos-dns]# ./mesos-dns -version\r\n    0.1.1\r\n\r\nPretty stock configuration:\r\n\r\n    {\r\n      \"zk\": \"zk://prod-zk-1.my.net:2181,prod-zk-2.my.net:2181,prod-zk-3.my.net:2181/mesos\",\r\n      \"refreshSeconds\": 60,\r\n      \"ttl\": 60,\r\n      \"domain\": \"mesos\",\r\n      \"port\": 53,\r\n      \"resolvers\": [\"192.168.0.4\", \"192.168.0.3\"],\r\n      \"timeout\": 5,\r\n      \"listener\": \"192.168.55.1\",\r\n      \"email\": \"root.mesos-dns.mesos\"\r\n    }\r\n\r\nIs this a known issue?  If so, is there a fix available?  If not, I'll be happy to provide any additional information to help resolve it.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mesosphere/mesos-dns/issues/comments/92385280","html_url":"https://github.com/mesosphere/mesos-dns/issues/126#issuecomment-92385280","issue_url":"https://api.github.com/repos/mesosphere/mesos-dns/issues/126","id":92385280,"user":{"login":"kozyraki","id":2906213,"avatar_url":"https://avatars.githubusercontent.com/u/2906213?v=3","gravatar_id":"","url":"https://api.github.com/users/kozyraki","html_url":"https://github.com/kozyraki","followers_url":"https://api.github.com/users/kozyraki/followers","following_url":"https://api.github.com/users/kozyraki/following{/other_user}","gists_url":"https://api.github.com/users/kozyraki/gists{/gist_id}","starred_url":"https://api.github.com/users/kozyraki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kozyraki/subscriptions","organizations_url":"https://api.github.com/users/kozyraki/orgs","repos_url":"https://api.github.com/users/kozyraki/repos","events_url":"https://api.github.com/users/kozyraki/events{/privacy}","received_events_url":"https://api.github.com/users/kozyraki/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T14:40:48Z","updated_at":"2015-04-13T14:40:48Z","body":"Strange, not sure what is going on. \r\nCan you try first \"cd $GOPATH/src/github.com/mesosphere/mesos-dns\" and then \"make all\"?"}}