{"action":"created","issue":{"url":"https://api.github.com/repos/janeczku/docker-alpine-kubernetes/issues/4","repository_url":"https://api.github.com/repos/janeczku/docker-alpine-kubernetes","labels_url":"https://api.github.com/repos/janeczku/docker-alpine-kubernetes/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/janeczku/docker-alpine-kubernetes/issues/4/comments","events_url":"https://api.github.com/repos/janeczku/docker-alpine-kubernetes/issues/4/events","html_url":"https://github.com/janeczku/docker-alpine-kubernetes/issues/4","id":130829718,"number":4,"title":"Do recent Musl changes fix DNS issue?","user":{"login":"azell","id":489196,"avatar_url":"https://avatars.githubusercontent.com/u/489196?v=3","gravatar_id":"","url":"https://api.github.com/users/azell","html_url":"https://github.com/azell","followers_url":"https://api.github.com/users/azell/followers","following_url":"https://api.github.com/users/azell/following{/other_user}","gists_url":"https://api.github.com/users/azell/gists{/gist_id}","starred_url":"https://api.github.com/users/azell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azell/subscriptions","organizations_url":"https://api.github.com/users/azell/orgs","repos_url":"https://api.github.com/users/azell/repos","events_url":"https://api.github.com/users/azell/events{/privacy}","received_events_url":"https://api.github.com/users/azell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-02T21:52:08Z","updated_at":"2016-02-03T00:56:50Z","closed_at":null,"body":"FYI: http://git.musl-libc.org/cgit/musl/commit/?id=3d6e2e477ced37fd328870f018950b283cb7293c\r\n\r\n> add support for search domains to dns resolver\r\n> search is only performed if the search or domain keyword is used in\r\n> resolv.conf and the queried name has fewer than ndots dots. there is\r\n> no default domain and names with >=ndots dots are never subjected to\r\n> search; failure in the root scope is final.\r\n> \r\n> the (non-POSIX) res_search API presently does not honor search. this\r\n> may be added at some point in the future if needed.\r\n> \r\n> resolv.conf is now parsed twice, at two different layers of the code\r\n> involved. this will be fixed in a subsequent patch.\r\n> \r\n\r\nDoes this potentially remove the need for a separate DNS resolver?"},"comment":{"url":"https://api.github.com/repos/janeczku/docker-alpine-kubernetes/issues/comments/178928511","html_url":"https://github.com/janeczku/docker-alpine-kubernetes/issues/4#issuecomment-178928511","issue_url":"https://api.github.com/repos/janeczku/docker-alpine-kubernetes/issues/4","id":178928511,"user":{"login":"janeczku","id":3813921,"avatar_url":"https://avatars.githubusercontent.com/u/3813921?v=3","gravatar_id":"","url":"https://api.github.com/users/janeczku","html_url":"https://github.com/janeczku","followers_url":"https://api.github.com/users/janeczku/followers","following_url":"https://api.github.com/users/janeczku/following{/other_user}","gists_url":"https://api.github.com/users/janeczku/gists{/gist_id}","starred_url":"https://api.github.com/users/janeczku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janeczku/subscriptions","organizations_url":"https://api.github.com/users/janeczku/orgs","repos_url":"https://api.github.com/users/janeczku/repos","events_url":"https://api.github.com/users/janeczku/events{/privacy}","received_events_url":"https://api.github.com/users/janeczku/received_events","type":"User","site_admin":false},"created_at":"2016-02-03T00:56:50Z","updated_at":"2016-02-03T00:56:50Z","body":"Thanks for sharing this! Good news indeed.\r\nAs to your question: If you are strictly using single-label names for service discovery then i expect the  musl search implementation to work perfectly fine. Apparently they decided to drop search alltogether when the query has >= ndots. This means we still cannot expect it to behave like GNU libc distributions. For example, traversing namespaces in Kubernetes (`<service-name>.<namespace-name>.svc.cluster.local`) won't work  unless you set `ndots` option to 5 (which is a really bad idea for a number of reasons)."}}