{"action":"created","issue":{"url":"https://api.github.com/repos/pgbouncer/pgbouncer/issues/332","repository_url":"https://api.github.com/repos/pgbouncer/pgbouncer","labels_url":"https://api.github.com/repos/pgbouncer/pgbouncer/issues/332/labels{/name}","comments_url":"https://api.github.com/repos/pgbouncer/pgbouncer/issues/332/comments","events_url":"https://api.github.com/repos/pgbouncer/pgbouncer/issues/332/events","html_url":"https://github.com/pgbouncer/pgbouncer/issues/332","id":366826591,"node_id":"MDU6SXNzdWUzNjY4MjY1OTE=","number":332,"title":"Kubernetes DNS resolution fial","user":{"login":"JindrichPilar","id":2984399,"node_id":"MDQ6VXNlcjI5ODQzOTk=","avatar_url":"https://avatars2.githubusercontent.com/u/2984399?v=4","gravatar_id":"","url":"https://api.github.com/users/JindrichPilar","html_url":"https://github.com/JindrichPilar","followers_url":"https://api.github.com/users/JindrichPilar/followers","following_url":"https://api.github.com/users/JindrichPilar/following{/other_user}","gists_url":"https://api.github.com/users/JindrichPilar/gists{/gist_id}","starred_url":"https://api.github.com/users/JindrichPilar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JindrichPilar/subscriptions","organizations_url":"https://api.github.com/users/JindrichPilar/orgs","repos_url":"https://api.github.com/users/JindrichPilar/repos","events_url":"https://api.github.com/users/JindrichPilar/events{/privacy}","received_events_url":"https://api.github.com/users/JindrichPilar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-04T14:46:35Z","updated_at":"2018-11-22T09:34:31Z","closed_at":null,"author_association":"NONE","body":"I am having problems trying to use pgbouncer in (Azure) Kubernetes, it cannot resolve DNS.\r\n\r\nIt works on my local machine using docker-compose without problem.\r\n\r\nI used custom alpine based image with [alpine pgbouncer package](https://pkgs.alpinelinux.org/package/edge/community/x86/pgbouncer), I also tried docker compiled package by [Edoburu](https://github.com/edoburu/docker-pgbouncer). Both of them use c-ares for domain name resolution (as mentioned in https://github.com/pgbouncer/pgbouncer/issues/122).\r\n\r\nThe error message I get is:\r\n```\r\nLOG S-0x5611d3b0df90: my-db/root@(bad-af):0 closing because: server dns lookup failed (age=0)\r\n```\r\n\r\nI checked domain resolution using ``host`` command from [bind-tools](https://pkgs.alpinelinux.org/package/edge/main/x86/bind-tools) and the same domain name inside same Kuberentes pod is resolved without an issue."},"comment":{"url":"https://api.github.com/repos/pgbouncer/pgbouncer/issues/comments/440968709","html_url":"https://github.com/pgbouncer/pgbouncer/issues/332#issuecomment-440968709","issue_url":"https://api.github.com/repos/pgbouncer/pgbouncer/issues/332","id":440968709,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDk2ODcwOQ==","user":{"login":"JindrichPilar","id":2984399,"node_id":"MDQ6VXNlcjI5ODQzOTk=","avatar_url":"https://avatars2.githubusercontent.com/u/2984399?v=4","gravatar_id":"","url":"https://api.github.com/users/JindrichPilar","html_url":"https://github.com/JindrichPilar","followers_url":"https://api.github.com/users/JindrichPilar/followers","following_url":"https://api.github.com/users/JindrichPilar/following{/other_user}","gists_url":"https://api.github.com/users/JindrichPilar/gists{/gist_id}","starred_url":"https://api.github.com/users/JindrichPilar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JindrichPilar/subscriptions","organizations_url":"https://api.github.com/users/JindrichPilar/orgs","repos_url":"https://api.github.com/users/JindrichPilar/repos","events_url":"https://api.github.com/users/JindrichPilar/events{/privacy}","received_events_url":"https://api.github.com/users/JindrichPilar/received_events","type":"User","site_admin":false},"created_at":"2018-11-22T09:34:31Z","updated_at":"2018-11-22T09:34:31Z","author_association":"NONE","body":"It started working without any changes on my part, no idea why.\r\n\r\n@cpressland  Thank You for your response, today I got to try your changes, but Azure CLI forbids me using dnsConfig with ``` Forbidden: DNSConfig: custom pod DNS is disabled by feature gate```\r\n\r\n"}}
{"actor":{"display_login":"JindrichPilar"}}