{"action":"opened","issue":{"url":"https://api.github.com/repos/luin/ioredis/issues/37","labels_url":"https://api.github.com/repos/luin/ioredis/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/luin/ioredis/issues/37/comments","events_url":"https://api.github.com/repos/luin/ioredis/issues/37/events","html_url":"https://github.com/luin/ioredis/issues/37","id":78085070,"number":37,"title":"consider using SRV records for redis & sentinel hosts","user":{"login":"jedi4ever","id":70908,"avatar_url":"https://avatars.githubusercontent.com/u/70908?v=3","gravatar_id":"","url":"https://api.github.com/users/jedi4ever","html_url":"https://github.com/jedi4ever","followers_url":"https://api.github.com/users/jedi4ever/followers","following_url":"https://api.github.com/users/jedi4ever/following{/other_user}","gists_url":"https://api.github.com/users/jedi4ever/gists{/gist_id}","starred_url":"https://api.github.com/users/jedi4ever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedi4ever/subscriptions","organizations_url":"https://api.github.com/users/jedi4ever/orgs","repos_url":"https://api.github.com/users/jedi4ever/repos","events_url":"https://api.github.com/users/jedi4ever/events{/privacy}","received_events_url":"https://api.github.com/users/jedi4ever/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-19T13:21:52Z","updated_at":"2015-05-19T13:21:52Z","closed_at":null,"body":"In an ever changing world like docker & microservices , the IP-adresses + PORTS of hosts change.\r\nTraditionally only DNS takes care of the hostname->IP\r\n\r\n- Ideally on connection failure the client would lookup the DNS & Port again.\r\n- On redis-sentinel topology change it could lookup the master & slave DNS & Port again.\r\n\r\nWe could leverage the SRV record to find the current redis host & port instead of a regular dns lookup.\r\n\r\nThis ticket is to ask if you will find the useful, and would be willing to accept a pullrequest for implementing this."}}