{"action":"created","issue":{"url":"https://api.github.com/repos/odeke-em/drive/issues/358","labels_url":"https://api.github.com/repos/odeke-em/drive/issues/358/labels{/name}","comments_url":"https://api.github.com/repos/odeke-em/drive/issues/358/comments","events_url":"https://api.github.com/repos/odeke-em/drive/issues/358/events","html_url":"https://github.com/odeke-em/drive/issues/358","id":103841977,"number":358,"title":"Cannot unmarshal DNS message","user":{"login":"raintonr","id":3794098,"avatar_url":"https://avatars.githubusercontent.com/u/3794098?v=3","gravatar_id":"","url":"https://api.github.com/users/raintonr","html_url":"https://github.com/raintonr","followers_url":"https://api.github.com/users/raintonr/followers","following_url":"https://api.github.com/users/raintonr/following{/other_user}","gists_url":"https://api.github.com/users/raintonr/gists{/gist_id}","starred_url":"https://api.github.com/users/raintonr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raintonr/subscriptions","organizations_url":"https://api.github.com/users/raintonr/orgs","repos_url":"https://api.github.com/users/raintonr/repos","events_url":"https://api.github.com/users/raintonr/events{/privacy}","received_events_url":"https://api.github.com/users/raintonr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-29T09:41:12Z","updated_at":"2015-09-30T15:00:33Z","closed_at":null,"body":"Just today I started getting this error on push:\r\n\r\n```\r\nGet https://www.googleapis.com/drive/v2/files?alt=json&maxResults=1&q=%22root%22+in+parents+and+title+%3D+%22Pictures%22+and+trashed%3Dfalse: dial tcp: lookup www.googleapis.com on 10.1.109.1:53: cannot unmarshal DNS message\r\n```\r\n\r\nNote the DNS server on my LAN (10.1.109.1) does properly resolve www.googleapis.com:\r\n\r\n```\r\n$ dig @10.1.109.1 www.googleapis.com\r\n\r\n; <<>> DiG 9.10.2-P3-RedHat-9.10.2-4.P3.fc22 <<>> @10.1.109.1 www.googleapis.com\r\n; (1 server found)\r\n;; global options: +cmd\r\n;; Got answer:\r\n;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12113\r\n;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 13, ADDITIONAL: 13\r\n\r\n;; QUESTION SECTION:\r\n;www.googleapis.com.\t\tIN\tA\r\n\r\n;; ANSWER SECTION:\r\nwww.googleapis.com.\t2347\tIN\tCNAME\tgoogleapis.l.google.com.\r\ngoogleapis.l.google.com. 171\tIN\tA\t74.125.136.95\r\n\r\n;; AUTHORITY SECTION:\r\ncom.\t\t\t142080\tIN\tNS\ti.gtld-servers.net.\r\ncom.\t\t\t142080\tIN\tNS\ta.gtld-servers.net.\r\ncom.\t\t\t142080\tIN\tNS\tm.gtld-servers.net.\r\ncom.\t\t\t142080\tIN\tNS\tk.gtld-servers.net.\r\ncom.\t\t\t142080\tIN\tNS\tl.gtld-servers.net.\r\ncom.\t\t\t142080\tIN\tNS\tg.gtld-servers.net.\r\ncom.\t\t\t142080\tIN\tNS\th.gtld-servers.net.\r\ncom.\t\t\t142080\tIN\tNS\tf.gtld-servers.net.\r\ncom.\t\t\t142080\tIN\tNS\tb.gtld-servers.net.\r\ncom.\t\t\t142080\tIN\tNS\tc.gtld-servers.net.\r\ncom.\t\t\t142080\tIN\tNS\te.gtld-servers.net.\r\ncom.\t\t\t142080\tIN\tNS\tj.gtld-servers.net.\r\ncom.\t\t\t142080\tIN\tNS\td.gtld-servers.net.\r\n\r\n;; ADDITIONAL SECTION:\r\ni.gtld-servers.net.\t142080\tIN\tA\t192.43.172.30\r\na.gtld-servers.net.\t142080\tIN\tA\t192.5.6.30\r\nm.gtld-servers.net.\t142080\tIN\tA\t192.55.83.30\r\nk.gtld-servers.net.\t142080\tIN\tA\t192.52.178.30\r\nl.gtld-servers.net.\t142080\tIN\tA\t192.41.162.30\r\ng.gtld-servers.net.\t142080\tIN\tA\t192.42.93.30\r\nh.gtld-servers.net.\t142080\tIN\tA\t192.54.112.30\r\nf.gtld-servers.net.\t142080\tIN\tA\t192.35.51.30\r\nb.gtld-servers.net.\t142080\tIN\tA\t192.33.14.30\r\nc.gtld-servers.net.\t142080\tIN\tA\t192.26.92.30\r\ne.gtld-servers.net.\t142080\tIN\tA\t192.12.94.30\r\nj.gtld-servers.net.\t142080\tIN\tA\t192.48.79.30\r\nd.gtld-servers.net.\t142080\tIN\tA\t192.31.80.30\r\n\r\n;; Query time: 4 msec\r\n;; SERVER: 10.1.109.1#53(10.1.109.1)\r\n;; WHEN: Sat Aug 29 11:33:09 CEST 2015\r\n;; MSG SIZE  rcvd: 518\r\n```\r\n\r\nNote the message size is 518 bytes.\r\n\r\nIf we try Google's  public DNS we get a much shorter reply:\r\n\r\n```\r\ndig @8.8.8.8 www.googleapis.com\r\n\r\n; <<>> DiG 9.10.2-P3-RedHat-9.10.2-4.P3.fc22 <<>> @8.8.8.8 www.googleapis.com\r\n; (1 server found)\r\n;; global options: +cmd\r\n;; Got answer:\r\n;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1655\r\n;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1\r\n\r\n;; OPT PSEUDOSECTION:\r\n; EDNS: version: 0, flags:; udp: 512\r\n;; QUESTION SECTION:\r\n;www.googleapis.com.\t\tIN\tA\r\n\r\n;; ANSWER SECTION:\r\nwww.googleapis.com.\t3599\tIN\tCNAME\tgoogleapis.l.google.com.\r\ngoogleapis.l.google.com. 299\tIN\tA\t74.125.136.95\r\n\r\n;; Query time: 35 msec\r\n;; SERVER: 8.8.8.8#53(8.8.8.8)\r\n;; WHEN: Sat Aug 29 11:37:28 CEST 2015\r\n;; MSG SIZE  rcvd: 97\r\n```\r\n\r\nDoing a quick search I find some errors regarding the Go language not being able to handle large DNS replies. See https://github.com/hashicorp/consul/issues/854\r\n\r\nI'm logging this here in case anyone else using drive sees similar issue and wants to know how to fix it."},"comment":{"url":"https://api.github.com/repos/odeke-em/drive/issues/comments/144438391","html_url":"https://github.com/odeke-em/drive/issues/358#issuecomment-144438391","issue_url":"https://api.github.com/repos/odeke-em/drive/issues/358","id":144438391,"user":{"login":"odeke-em","id":4898263,"avatar_url":"https://avatars.githubusercontent.com/u/4898263?v=3","gravatar_id":"","url":"https://api.github.com/users/odeke-em","html_url":"https://github.com/odeke-em","followers_url":"https://api.github.com/users/odeke-em/followers","following_url":"https://api.github.com/users/odeke-em/following{/other_user}","gists_url":"https://api.github.com/users/odeke-em/gists{/gist_id}","starred_url":"https://api.github.com/users/odeke-em/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odeke-em/subscriptions","organizations_url":"https://api.github.com/users/odeke-em/orgs","repos_url":"https://api.github.com/users/odeke-em/repos","events_url":"https://api.github.com/users/odeke-em/events{/privacy}","received_events_url":"https://api.github.com/users/odeke-em/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T15:00:33Z","updated_at":"2015-09-30T15:00:33Z","body":"Yeah unfortunately this is an issue that maybe if it returns, you can open on the golang issues page as drive has no control over such.\nThanks for reporting this nonetheless. "}}