{"action":"opened","issue":{"url":"https://api.github.com/repos/nsqio/nsq/issues/646","labels_url":"https://api.github.com/repos/nsqio/nsq/issues/646/labels{/name}","comments_url":"https://api.github.com/repos/nsqio/nsq/issues/646/comments","events_url":"https://api.github.com/repos/nsqio/nsq/issues/646/events","html_url":"https://github.com/nsqio/nsq/issues/646","id":105882478,"number":646,"title":"Proposal: Take advantage of service discovery, expand DNS records","user":{"login":"ekristen","id":48329,"avatar_url":"https://avatars.githubusercontent.com/u/48329?v=3","gravatar_id":"","url":"https://api.github.com/users/ekristen","html_url":"https://github.com/ekristen","followers_url":"https://api.github.com/users/ekristen/followers","following_url":"https://api.github.com/users/ekristen/following{/other_user}","gists_url":"https://api.github.com/users/ekristen/gists{/gist_id}","starred_url":"https://api.github.com/users/ekristen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekristen/subscriptions","organizations_url":"https://api.github.com/users/ekristen/orgs","repos_url":"https://api.github.com/users/ekristen/repos","events_url":"https://api.github.com/users/ekristen/events{/privacy}","received_events_url":"https://api.github.com/users/ekristen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-10T19:36:21Z","updated_at":"2015-09-10T19:36:21Z","closed_at":null,"body":"In the age of service discovery where tools like Consul, SkyDNS, and other services exist to do service discovery via DNS because networks and IP address change, I think it would make sense for NSQ to take advantage of this.\r\n\r\nThis proposal is for anytime a DNS entry is given to an argument like `-lookupd-tcp-address` that nsq take all the records returned from the DNS query and make the additional connections automatically.\r\n\r\nFor example, if using consul and I provide `-lookupd-tcp-address=nsqlookup.service.consul` and the `nsqlookup.service.consul` has 3 IP addresses in the DNS record, nsqd should make 3 separate connections just as if `-lookup-tcp-address` had been given 3 times. "}}