{"action":"created","issue":{"url":"https://api.github.com/repos/flynn/flynn/issues/746","labels_url":"https://api.github.com/repos/flynn/flynn/issues/746/labels{/name}","comments_url":"https://api.github.com/repos/flynn/flynn/issues/746/comments","events_url":"https://api.github.com/repos/flynn/flynn/issues/746/events","html_url":"https://github.com/flynn/flynn/pull/746","id":54533847,"number":746,"title":"discoverd2: Implement DNS server","user":{"login":"titanous","id":13026,"avatar_url":"https://avatars.githubusercontent.com/u/13026?v=3","gravatar_id":"","url":"https://api.github.com/users/titanous","html_url":"https://github.com/titanous","followers_url":"https://api.github.com/users/titanous/followers","following_url":"https://api.github.com/users/titanous/following{/other_user}","gists_url":"https://api.github.com/users/titanous/gists{/gist_id}","starred_url":"https://api.github.com/users/titanous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/titanous/subscriptions","organizations_url":"https://api.github.com/users/titanous/orgs","repos_url":"https://api.github.com/users/titanous/repos","events_url":"https://api.github.com/users/titanous/events{/privacy}","received_events_url":"https://api.github.com/users/titanous/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-16T02:44:35Z","updated_at":"2015-01-18T00:04:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/flynn/flynn/pulls/746","html_url":"https://github.com/flynn/flynn/pull/746","diff_url":"https://github.com/flynn/flynn/pull/746.diff","patch_url":"https://github.com/flynn/flynn/pull/746.patch"},"body":"Incremental patch for #145.\r\n\r\nThis implements a DNS server backed by the discoverd database.\r\n\r\nQueries that are not for the `discoverd.` domain will be proxied to a recursive nameservers if configured.\r\n\r\nEach registered service exposes a number of domains:\r\n\r\n#### Service\r\n\r\n`SERVICE.discoverd.` returns randomly sorted A, AAAA, and SRV records for each instance.\r\n\r\n#### RFC 2782\r\n\r\n`_SERVICE._PROTO.discoverd.` returns randomly sorted A, AAAA, and SRV records for each instance, filtered by protocol.\r\n\r\n#### Leader\r\n\r\n`leader.SERVICE.discoverd.` returns single A or AAAA and SRV records pointing at the leader of the service.\r\n\r\n#### Instance\r\n\r\n`INSTANCE_ID.SERVICE._i.discoverd.` returns single A or AAAA and SRV records for a single instance. This domain pattern is typically only used as the target for SRV records (which include the port but not the IP address).\r\n\r\nLookups over UDP are limited to up to three instances and the response does not have the truncation bit set (which would trigger a subsequent lookup over TCP). TCP lookups return all instances. The weight and priority of SRV records is always 1. The response to SRV questions over TCP include extra A/AAAA records matching each target in the answer. The TTL is always 0."},"comment":{"url":"https://api.github.com/repos/flynn/flynn/issues/comments/70390342","html_url":"https://github.com/flynn/flynn/pull/746#issuecomment-70390342","issue_url":"https://api.github.com/repos/flynn/flynn/issues/746","id":70390342,"user":{"login":"heavenlyhash","id":627638,"avatar_url":"https://avatars.githubusercontent.com/u/627638?v=3","gravatar_id":"","url":"https://api.github.com/users/heavenlyhash","html_url":"https://github.com/heavenlyhash","followers_url":"https://api.github.com/users/heavenlyhash/followers","following_url":"https://api.github.com/users/heavenlyhash/following{/other_user}","gists_url":"https://api.github.com/users/heavenlyhash/gists{/gist_id}","starred_url":"https://api.github.com/users/heavenlyhash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heavenlyhash/subscriptions","organizations_url":"https://api.github.com/users/heavenlyhash/orgs","repos_url":"https://api.github.com/users/heavenlyhash/repos","events_url":"https://api.github.com/users/heavenlyhash/events{/privacy}","received_events_url":"https://api.github.com/users/heavenlyhash/received_events","type":"User","site_admin":false},"created_at":"2015-01-18T00:04:45Z","updated_at":"2015-01-18T00:04:45Z","body":"LGTM"}}