{"action":"created","issue":{"url":"https://api.github.com/repos/mesosphere/mesos-dns/issues/161","labels_url":"https://api.github.com/repos/mesosphere/mesos-dns/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/mesosphere/mesos-dns/issues/161/comments","events_url":"https://api.github.com/repos/mesosphere/mesos-dns/issues/161/events","html_url":"https://github.com/mesosphere/mesos-dns/issues/161","id":79034745,"number":161,"title":"Recovered from panic: \"index out of range\" (runtime error: index out of range)","user":{"login":"tusbar","id":166147,"avatar_url":"https://avatars.githubusercontent.com/u/166147?v=3","gravatar_id":"","url":"https://api.github.com/users/tusbar","html_url":"https://github.com/tusbar","followers_url":"https://api.github.com/users/tusbar/followers","following_url":"https://api.github.com/users/tusbar/following{/other_user}","gists_url":"https://api.github.com/users/tusbar/gists{/gist_id}","starred_url":"https://api.github.com/users/tusbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tusbar/subscriptions","organizations_url":"https://api.github.com/users/tusbar/orgs","repos_url":"https://api.github.com/users/tusbar/repos","events_url":"https://api.github.com/users/tusbar/events{/privacy}","received_events_url":"https://api.github.com/users/tusbar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-21T15:00:51Z","updated_at":"2015-05-21T15:40:41Z","closed_at":null,"body":"Hey I’m getting this error running mesos-dns, on a simple mesos cluster with nothing running on it…\r\n\r\n```\r\nVERY VERBOSE: 2015/05/21 14:58:15 config.go:143: Mesos-DNS configuration:\r\nVERY VERBOSE: 2015/05/21 14:58:15 config.go:145:    - Masters: 172.17.8.101\r\nVERY VERBOSE: 2015/05/21 14:58:15 config.go:148:    - Zookeeper:  zk://172.17.8.101:2181/mesos\r\nVERY VERBOSE: 2015/05/21 14:58:15 config.go:150:    - RefreshSeconds:  60\r\nVERY VERBOSE: 2015/05/21 14:58:15 config.go:151:    - Domain: mesos\r\nVERY VERBOSE: 2015/05/21 14:58:15 config.go:152:    - Listener: 0.0.0.0\r\nVERY VERBOSE: 2015/05/21 14:58:15 config.go:153:    - Port:  8053\r\nVERY VERBOSE: 2015/05/21 14:58:15 config.go:154:    - DnsOn:  true\r\nVERY VERBOSE: 2015/05/21 14:58:15 config.go:155:    - TTL:  60\r\nVERY VERBOSE: 2015/05/21 14:58:15 config.go:156:    - Timeout:  5\r\nVERY VERBOSE: 2015/05/21 14:58:15 config.go:157:    - Resolvers: 8.8.8.8\r\nVERY VERBOSE: 2015/05/21 14:58:15 config.go:158:    - ExternalOn:  true\r\nVERY VERBOSE: 2015/05/21 14:58:15 config.go:159:    - SOAMname: root.ns1.mesos.\r\nVERY VERBOSE: 2015/05/21 14:58:15 config.go:160:    - SOARname: ns1.mesos.\r\nVERY VERBOSE: 2015/05/21 14:58:15 config.go:161:    - SOASerial:  1432220295\r\nVERY VERBOSE: 2015/05/21 14:58:15 config.go:162:    - SOARefresh:  60\r\nVERY VERBOSE: 2015/05/21 14:58:15 config.go:163:    - SOARetry:  600\r\nVERY VERBOSE: 2015/05/21 14:58:15 config.go:164:    - SOAExpire:  86400\r\nVERY VERBOSE: 2015/05/21 14:58:15 config.go:165:    - SOAExpire:  60\r\nVERY VERBOSE: 2015/05/21 14:58:15 config.go:166:    - RecurseOn:  true\r\nVERY VERBOSE: 2015/05/21 14:58:15 config.go:167:    - HttpPort:  8123\r\nVERY VERBOSE: 2015/05/21 14:58:15 config.go:168:    - HttpOn:  true\r\nVERY VERBOSE: 2015/05/21 14:58:15 config.go:169:    - ConfigFile:  /tmp/mesos-dns/config.json\r\nVERY VERBOSE: 2015/05/21 14:58:15 resolver.go:654: Starting master detector for ZK  zk://172.17.8.101:2181/mesos\r\nVERY VERBOSE: 2015/05/21 14:58:15 resolver.go:138: Warning: waiting for initial information from Zookeper.\r\nVERY VERBOSE: 2015/05/21 14:58:15 resolver.go:668: Updated Zookeeper info:  &MasterInfo{Id:*20150521-101301-1695027628-5050-1938,Ip:*1695027628,Port:*5050,Pid:*master@172.17.8.101:5050,Hostname:*172.17.8.101,XXX_unrecognized:[],}\r\nVERY VERBOSE: 2015/05/21 14:58:15 resolver.go:682: new master in Zookeeper  172.17.8.101:5050\r\nVERY VERBOSE: 2015/05/21 14:58:15 resolver.go:141: Info: got initial information from Zookeper.\r\nVERY VERBOSE: 2015/05/21 14:58:15 generator.go:95: Zookeeper says the leader is:  172.17.8.101:5050\r\nVERY VERBOSE: 2015/05/21 14:58:15 generator.go:180: reloading from master 172.17.8.101\r\nVERY VERBOSE: 2015/05/21 14:58:15 generator.go:381: [A]\tns1.mesos.: 10.0.2.15\r\nVERY VERBOSE: 2015/05/21 14:58:15 generator.go:381: [A]\tns1.mesos.: 172.17.8.101\r\nVERY VERBOSE: 2015/05/21 14:58:15 generator.go:381: [A]\tns1.mesos.: 10.1.42.1\r\nVERY VERBOSE: 2015/05/21 14:58:15 generator.go:381: [A]\tleader.mesos.: 172.17.8.101\r\nVERY VERBOSE: 2015/05/21 14:58:15 generator.go:381: [A]\tmaster.mesos.: 172.17.8.101\r\nVERY VERBOSE: 2015/05/21 14:58:15 generator.go:381: [SRV]\t_leader._tcp.mesos.: leader.mesos.:5050\r\nVERY VERBOSE: 2015/05/21 14:58:15 generator.go:381: [SRV]\t_leader._udp.mesos.: leader.mesos.:5050\r\n2015/05/21 14:58:15 Recovered from panic: \"index out of range\" (runtime error: index out of range)\r\n/tmp/go/src/github.com/mesosphere/mesos-dns/util/util.go:47\r\n/tmp/go/src/github.com/mesosphere/mesos-dns/util/util.go:38\r\n/usr/local/go/src/runtime/asm_amd64.s:401\r\n/usr/local/go/src/runtime/panic.go:387\r\n/usr/local/go/src/runtime/panic.go:12\r\n/tmp/go/src/github.com/mesosphere/mesos-dns/records/generator.go:452\r\n/tmp/go/src/github.com/mesosphere/mesos-dns/records/generator.go:313\r\n/tmp/go/src/github.com/mesosphere/mesos-dns/records/generator.go:278\r\n/tmp/go/src/github.com/mesosphere/mesos-dns/records/generator.go:84\r\n/tmp/go/src/github.com/mesosphere/mesos-dns/resolver/resolver.go:156\r\n/tmp/go/src/github.com/mesosphere/mesos-dns/main.go:93\r\n/usr/local/go/src/runtime/asm_amd64.s:2232\r\n```\r\n\r\nIs it a configuration problem or anything I’ve done wrong? :)"},"comment":{"url":"https://api.github.com/repos/mesosphere/mesos-dns/issues/comments/104323590","html_url":"https://github.com/mesosphere/mesos-dns/issues/161#issuecomment-104323590","issue_url":"https://api.github.com/repos/mesosphere/mesos-dns/issues/161","id":104323590,"user":{"login":"tusbar","id":166147,"avatar_url":"https://avatars.githubusercontent.com/u/166147?v=3","gravatar_id":"","url":"https://api.github.com/users/tusbar","html_url":"https://github.com/tusbar","followers_url":"https://api.github.com/users/tusbar/followers","following_url":"https://api.github.com/users/tusbar/following{/other_user}","gists_url":"https://api.github.com/users/tusbar/gists{/gist_id}","starred_url":"https://api.github.com/users/tusbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tusbar/subscriptions","organizations_url":"https://api.github.com/users/tusbar/orgs","repos_url":"https://api.github.com/users/tusbar/repos","events_url":"https://api.github.com/users/tusbar/events{/privacy}","received_events_url":"https://api.github.com/users/tusbar/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T15:40:41Z","updated_at":"2015-05-21T15:40:41Z","body":"Oh… yes indeed, thanks @jdef.\r\n\r\nMaybe it should imply the default port if nothing is set?"}}