{"action":"created","issue":{"url":"https://api.github.com/repos/mesosphere/mesos-dns/issues/236","labels_url":"https://api.github.com/repos/mesosphere/mesos-dns/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/mesosphere/mesos-dns/issues/236/comments","events_url":"https://api.github.com/repos/mesosphere/mesos-dns/issues/236/events","html_url":"https://github.com/mesosphere/mesos-dns/issues/236","id":103700250,"number":236,"title":"mesos-dns fails to start","user":{"login":"dharmit","id":713521,"avatar_url":"https://avatars.githubusercontent.com/u/713521?v=3","gravatar_id":"","url":"https://api.github.com/users/dharmit","html_url":"https://github.com/dharmit","followers_url":"https://api.github.com/users/dharmit/followers","following_url":"https://api.github.com/users/dharmit/following{/other_user}","gists_url":"https://api.github.com/users/dharmit/gists{/gist_id}","starred_url":"https://api.github.com/users/dharmit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dharmit/subscriptions","organizations_url":"https://api.github.com/users/dharmit/orgs","repos_url":"https://api.github.com/users/dharmit/repos","events_url":"https://api.github.com/users/dharmit/events{/privacy}","received_events_url":"https://api.github.com/users/dharmit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-28T11:12:42Z","updated_at":"2015-09-01T13:47:55Z","closed_at":null,"body":"I am trying to start `mesos-dns` on one of the master nodes but it fails with below error.\r\n~~~\r\n$ sudo ./mesos-dns -config=config.json\r\nERROR: 2015/08/28 16:37:17 resolver.go:331: mesos-slave-1.example.com.\r\nERROR: 2015/08/28 16:37:17 resolver.go:332: failed external DNS lookup of \"mesos-slave-1.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:17 resolver.go:331: mesos-slave-2.example.com.\r\nERROR: 2015/08/28 16:37:17 resolver.go:332: failed external DNS lookup of \"mesos-slave-2.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:17 resolver.go:331: mesos-slave-1.example.com.\r\nERROR: 2015/08/28 16:37:17 resolver.go:332: failed external DNS lookup of \"mesos-slave-1.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:17 resolver.go:331: mesos-slave-2.example.com.\r\nERROR: 2015/08/28 16:37:17 resolver.go:332: failed external DNS lookup of \"mesos-slave-2.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:17 resolver.go:331: mesos-slave-1.example.com.\r\nERROR: 2015/08/28 16:37:17 resolver.go:332: failed external DNS lookup of \"mesos-slave-1.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:17 resolver.go:331: mesos-slave-2.example.com.\r\nERROR: 2015/08/28 16:37:17 resolver.go:332: failed external DNS lookup of \"mesos-slave-2.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:20 resolver.go:331: mesos-slave-1.example.com.\r\nERROR: 2015/08/28 16:37:20 resolver.go:332: failed external DNS lookup of \"mesos-slave-1.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:23 resolver.go:331: mesos-slave-1.example.com.\r\nERROR: 2015/08/28 16:37:23 resolver.go:332: failed external DNS lookup of \"mesos-slave-1.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:23 resolver.go:331: mesos-slave-2.example.com.\r\nERROR: 2015/08/28 16:37:23 resolver.go:332: failed external DNS lookup of \"mesos-slave-2.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:24 resolver.go:331: mesos-slave-1.example.com.\r\nERROR: 2015/08/28 16:37:24 resolver.go:332: failed external DNS lookup of \"mesos-slave-1.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:28 resolver.go:331: mesos-slave-1.example.com.\r\nERROR: 2015/08/28 16:37:28 resolver.go:332: failed external DNS lookup of \"mesos-slave-1.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:28 resolver.go:331: mesos-slave-2.example.com.\r\nERROR: 2015/08/28 16:37:28 resolver.go:332: failed external DNS lookup of \"mesos-slave-2.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:29 resolver.go:331: mesos-slave-1.example.com.\r\nERROR: 2015/08/28 16:37:29 resolver.go:332: failed external DNS lookup of \"mesos-slave-1.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:29 resolver.go:331: mesos-slave-2.example.com.\r\nERROR: 2015/08/28 16:37:29 resolver.go:332: failed external DNS lookup of \"mesos-slave-2.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:29 resolver.go:331: mesos-slave-1.example.com.\r\nERROR: 2015/08/28 16:37:29 resolver.go:332: failed external DNS lookup of \"mesos-slave-1.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:29 resolver.go:331: mesos-slave-2.example.com.\r\nERROR: 2015/08/28 16:37:29 resolver.go:332: failed external DNS lookup of \"mesos-slave-2.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:32 resolver.go:331: mesos-slave-1.example.com.\r\nERROR: 2015/08/28 16:37:32 resolver.go:332: failed external DNS lookup of \"mesos-slave-1.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:36 resolver.go:331: mesos-slave-2.example.com.\r\nERROR: 2015/08/28 16:37:36 resolver.go:332: failed external DNS lookup of \"mesos-slave-2.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:36 resolver.go:331: mesos-slave-1.example.com.\r\nERROR: 2015/08/28 16:37:36 resolver.go:332: failed external DNS lookup of \"mesos-slave-1.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:36 resolver.go:331: mesos-slave-1.example.com.\r\nERROR: 2015/08/28 16:37:36 resolver.go:332: failed external DNS lookup of \"mesos-slave-1.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:40 resolver.go:331: mesos-slave-1.example.com.\r\nERROR: 2015/08/28 16:37:40 resolver.go:332: failed external DNS lookup of \"mesos-slave-1.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:40 resolver.go:331: mesos-slave-2.example.com.\r\nERROR: 2015/08/28 16:37:40 resolver.go:332: failed external DNS lookup of \"mesos-slave-2.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:41 resolver.go:331: mesos-slave-1.example.com.\r\nERROR: 2015/08/28 16:37:41 resolver.go:332: failed external DNS lookup of \"mesos-slave-1.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:41 resolver.go:331: mesos-slave-2.example.com.\r\nERROR: 2015/08/28 16:37:41 resolver.go:332: failed external DNS lookup of \"mesos-slave-2.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:41 resolver.go:331: mesos-slave-1.example.com.\r\nERROR: 2015/08/28 16:37:41 resolver.go:332: failed external DNS lookup of \"mesos-slave-1.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:41 resolver.go:331: mesos-slave-2.example.com.\r\nERROR: 2015/08/28 16:37:41 resolver.go:332: failed external DNS lookup of \"mesos-slave-2.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:44 resolver.go:331: mesos-slave-1.example.com.\r\nERROR: 2015/08/28 16:37:44 resolver.go:332: failed external DNS lookup of \"mesos-slave-1.example.com.\": dial udp: missing port in address dns0.easydns.com.\r\nERROR: 2015/08/28 16:37:47 main.go:97: timed out waiting for initial ZK detection, exiting\r\n\r\nisys at mesos-master-1 in ~ \r\n$ ping -qc 1 mesos-slave-2.example.com.\r\nPING mesos-slave-2.example.com (172.19.10.214) 56(84) bytes of data.\r\n\r\n--- mesos-slave-2.example.com ping statistics ---\r\n1 packets transmitted, 1 received, 0% packet loss, time 0ms\r\nrtt min/avg/max/mdev = 0.217/0.217/0.217/0.000 ms\r\n\r\nisys at mesos-master-1 in ~ \r\n$ ping -qc 1 mesos-slave-1.example.com.\r\nPING mesos-slave-1.example.com (172.19.10.213) 56(84) bytes of data.\r\n\r\n--- mesos-slave-1.example.com ping statistics ---\r\n1 packets transmitted, 1 received, 0% packet loss, time 0ms\r\nrtt min/avg/max/mdev = 0.215/0.215/0.215/0.000 ms\r\n~~~\r\n\r\n`config.json` file:\r\n\r\n~~~\r\n{\r\n  \"zk\": \"zk://172.19.10.111:2181,172.19.10.112:2181,172.19.10.193:2181/mesos\",\r\n  \"masters\": [\"172.19.10.111:5050\",\"172.19.10.112:5050\",\"172.19.10.193:5050\"],\r\n  \"refreshSeconds\": 60, \r\n  \"ttl\": 60, \r\n  \"domain\": \"mesos\",\r\n  \"ns\": \"ns1\",\r\n  \"port\": 53, \r\n  \"resolvers\": [\"8.8.8.8\"],\r\n  \"timeout\": 5,\r\n  \"listener\": \"0.0.0.0\",\r\n  \"SOAMname\": \"root.ns1.mesos\",\r\n  \"SOARname\": \"ns1.mesos\",\r\n  \"SOARefresh\": 60, \r\n  \"SOARetry\":   600,\r\n  \"SOAExpire\":  86400,\r\n  \"SOAMinttl\": 60, \r\n  \"dnson\": true,\r\n  \"httpon\": true,\r\n  \"httpport\": 8123,\r\n  \"externalon\": true,\r\n  \"recurseon\": true\r\n}\r\n~~~"},"comment":{"url":"https://api.github.com/repos/mesosphere/mesos-dns/issues/comments/136728484","html_url":"https://github.com/mesosphere/mesos-dns/issues/236#issuecomment-136728484","issue_url":"https://api.github.com/repos/mesosphere/mesos-dns/issues/236","id":136728484,"user":{"login":"tsenart","id":67471,"avatar_url":"https://avatars.githubusercontent.com/u/67471?v=3","gravatar_id":"","url":"https://api.github.com/users/tsenart","html_url":"https://github.com/tsenart","followers_url":"https://api.github.com/users/tsenart/followers","following_url":"https://api.github.com/users/tsenart/following{/other_user}","gists_url":"https://api.github.com/users/tsenart/gists{/gist_id}","starred_url":"https://api.github.com/users/tsenart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsenart/subscriptions","organizations_url":"https://api.github.com/users/tsenart/orgs","repos_url":"https://api.github.com/users/tsenart/repos","events_url":"https://api.github.com/users/tsenart/events{/privacy}","received_events_url":"https://api.github.com/users/tsenart/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T13:47:55Z","updated_at":"2015-09-01T13:47:55Z","body":"@dharmit: Indeed, that didn't give us much more information. The problem seems to be in the ZK detection code which is part of `mesos-go`. Would you please run mesos-dns with the `-logtostderr` flag? That should give us some more logs."}}