{"action":"opened","issue":{"url":"https://api.github.com/repos/friendica/docker/issues/6","repository_url":"https://api.github.com/repos/friendica/docker","labels_url":"https://api.github.com/repos/friendica/docker/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/friendica/docker/issues/6/comments","events_url":"https://api.github.com/repos/friendica/docker/issues/6/events","html_url":"https://github.com/friendica/docker/issues/6","id":325639575,"number":6,"title":"Warning: dns_get_record(): A temporary server error occurred. in /var/www/html/include/dba.php on line 58","user":{"login":"jaltek","id":359552,"avatar_url":"https://avatars0.githubusercontent.com/u/359552?v=4","gravatar_id":"","url":"https://api.github.com/users/jaltek","html_url":"https://github.com/jaltek","followers_url":"https://api.github.com/users/jaltek/followers","following_url":"https://api.github.com/users/jaltek/following{/other_user}","gists_url":"https://api.github.com/users/jaltek/gists{/gist_id}","starred_url":"https://api.github.com/users/jaltek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaltek/subscriptions","organizations_url":"https://api.github.com/users/jaltek/orgs","repos_url":"https://api.github.com/users/jaltek/repos","events_url":"https://api.github.com/users/jaltek/events{/privacy}","received_events_url":"https://api.github.com/users/jaltek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-23T10:14:08Z","updated_at":"2018-05-23T10:14:08Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI tried to setup a friendica instance by using the docker-compose variant (Base version - FPM).\r\nBy using the install wizard I got an error during the database initialization:\r\n\r\n> Warning: dns_get_record(): A temporary server error occurred. in /var/www/html/include/dba.php on line 58\r\n\r\nSo I think the dns_get_record() function cannot handle the \"db\" hostname from the database.\r\n\r\nSo I digged a little around in the app container:\r\n```\r\n# dig db\r\n\r\n; <<>> DiG 9.9.5-9+deb8u15-Debian <<>> db\r\n;; global options: +cmd\r\n;; Got answer:\r\n;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5959\r\n;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0\r\n\r\n;; QUESTION SECTION:\r\n;db.                            IN      A\r\n\r\n;; ANSWER SECTION:\r\ndb.                     600     IN      A       172.19.0.2\r\n\r\n;; Query time: 1 msec\r\n;; SERVER: 127.0.0.11#53(127.0.0.11)\r\n;; WHEN: Wed May 23 10:08:20 UTC 2018\r\n;; MSG SIZE  rcvd: 38\r\n```\r\n\r\nUsing the PHP function:\r\n```\r\n# php -r \"var_dump(dns_get_record('db', DNS_A + DNS_CNAME + DNS_PTR));\"\r\n\r\nWarning: dns_get_record(): A temporary server error occurred. in Command line code on line 1\r\nbool(false)\r\n```\r\nUsing the PHP function without ```DNS_PTR```\r\n\r\n```\r\n# php -r \"var_dump(dns_get_record('db', DNS_A + DNS_CNAME));\"\r\narray(1) {\r\n  [0]=>\r\n  array(5) {\r\n    [\"host\"]=>\r\n    string(2) \"db\"\r\n    [\"class\"]=>\r\n    string(2) \"IN\"\r\n    [\"ttl\"]=>\r\n    int(600)\r\n    [\"type\"]=>\r\n    string(1) \"A\"\r\n    [\"ip\"]=>\r\n    string(10) \"172.19.0.2\"\r\n  }\r\n}\r\n```\r\n\r\nSo there seems to be an issue whith the PTR lookup inside the docker container...\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"jaltek"}}