{"action":"created","issue":{"url":"https://api.github.com/repos/gliderlabs/registrator/issues/33","labels_url":"https://api.github.com/repos/gliderlabs/registrator/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/gliderlabs/registrator/issues/33/comments","events_url":"https://api.github.com/repos/gliderlabs/registrator/issues/33/events","html_url":"https://github.com/gliderlabs/registrator/issues/33","id":45088791,"number":33,"title":"skydns2 backend broken for multiple ports","user":{"login":"sheldonh","id":45098,"avatar_url":"https://avatars.githubusercontent.com/u/45098?v=3","gravatar_id":"","url":"https://api.github.com/users/sheldonh","html_url":"https://github.com/sheldonh","followers_url":"https://api.github.com/users/sheldonh/followers","following_url":"https://api.github.com/users/sheldonh/following{/other_user}","gists_url":"https://api.github.com/users/sheldonh/gists{/gist_id}","starred_url":"https://api.github.com/users/sheldonh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheldonh/subscriptions","organizations_url":"https://api.github.com/users/sheldonh/orgs","repos_url":"https://api.github.com/users/sheldonh/repos","events_url":"https://api.github.com/users/sheldonh/events{/privacy}","received_events_url":"https://api.github.com/users/sheldonh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-10-07T09:54:24Z","updated_at":"2015-08-18T20:31:37Z","closed_at":"2015-08-18T20:31:37Z","body":"The skydns backend is broken for multiple ports.\r\n\r\nLet's say you have a web container that publishes ports 80 and 443. We should be writing these keys like these:\r\n\r\n```\r\n/skydns/docker/web/web1/_tcp/_http   <- {\"host\":\"10.1.42.80\",\"port\":80}\r\n/skydns/docker/web/web1/_tcp/_https  <- {\"host\":\"10.1.42.80\",\"port\":443}\r\n/skydns/docker/web/web1              <- {\"host\":\"10.1.42.80\"}\r\n```\r\n\r\nThis would support A record lookups of `web1.web.docker`, and SRV lookups of `_http._tcp.web1.web.docker` and `_https._tcp.web1.web.docker`.\r\n\r\nIt's not clear to me whether we should also support SRV lookups against the SERVICE_NAME as well, e.g. `_http._tcp.web.docker`.\r\n\r\nI'd like to listen to some feedback before I work on a patch."},"comment":{"url":"https://api.github.com/repos/gliderlabs/registrator/issues/comments/132341800","html_url":"https://github.com/gliderlabs/registrator/issues/33#issuecomment-132341800","issue_url":"https://api.github.com/repos/gliderlabs/registrator/issues/33","id":132341800,"user":{"login":"progrium","id":647,"avatar_url":"https://avatars.githubusercontent.com/u/647?v=3","gravatar_id":"","url":"https://api.github.com/users/progrium","html_url":"https://github.com/progrium","followers_url":"https://api.github.com/users/progrium/followers","following_url":"https://api.github.com/users/progrium/following{/other_user}","gists_url":"https://api.github.com/users/progrium/gists{/gist_id}","starred_url":"https://api.github.com/users/progrium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/progrium/subscriptions","organizations_url":"https://api.github.com/users/progrium/orgs","repos_url":"https://api.github.com/users/progrium/repos","events_url":"https://api.github.com/users/progrium/events{/privacy}","received_events_url":"https://api.github.com/users/progrium/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T20:31:37Z","updated_at":"2015-08-18T20:31:37Z","body":"Sounds like it's working as expected and @mgood's suggestion for the workaround sounds right."}}