payload: {"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/32017","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/32017/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/32017/comments","events_url":"https://api.github.com/repos/golang/go/issues/32017/events","html_url":"https://github.com/golang/go/issues/32017","id":443692540,"node_id":"MDU6SXNzdWU0NDM2OTI1NDA=","number":32017,"title":"net: pure go version of dnsclient does a DNS lookup of \"localhost\" qualified with the domain name.","user":{"login":"kraney","id":5760081,"node_id":"MDQ6VXNlcjU3NjAwODE=","avatar_url":"https://avatars3.githubusercontent.com/u/5760081?v=4","gravatar_id":"","url":"https://api.github.com/users/kraney","html_url":"https://github.com/kraney","followers_url":"https://api.github.com/users/kraney/followers","following_url":"https://api.github.com/users/kraney/following{/other_user}","gists_url":"https://api.github.com/users/kraney/gists{/gist_id}","starred_url":"https://api.github.com/users/kraney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kraney/subscriptions","organizations_url":"https://api.github.com/users/kraney/orgs","repos_url":"https://api.github.com/users/kraney/repos","events_url":"https://api.github.com/users/kraney/events{/privacy}","received_events_url":"https://api.github.com/users/kraney/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-05-14T03:25:42Z","updated_at":"2019-05-14T09:02:12Z","closed_at":null,"author_association":"NONE","body":"This bug is derived from this one I reported in Kubernetes.\r\n\r\nhttps://github.com/kubernetes/kubernetes/issues/77764\r\n\r\n### What did you do?\r\n\r\nOn my DNS domain, someone decided it would be cute to create a hostname 'localhost.mydomain.com'.\r\n\r\nGo's pure go DNS resolver, when looking up \"localhost\", tries \"localhost.mydomain.com\" first and ends up with an IP address from DNS, rather than resolving to 127.0.0.1 from /etc/hosts like you'd expect.\r\n\r\n### What did you expect to see?\r\nI expected that a) there would be no DNS lookup, and b) to get a result of 127.0.0.1\r\n\r\n\r\n### What did you see instead?\r\nAttempts to contact https://localhost/ end up being directed to the cutely-named system elsewhere in the network.\r\n\r\nLooking in https://github.com/golang/go/blob/master/src/net/dnsclient_unix.go, it appears that the function `nameList()`, given an argument of 'localhost', would return results that first search for the FQDN obtained by appending the default domain, and then would search for the unadorned 'localhost' last. This produces incorrect results."},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/492152282","html_url":"https://github.com/golang/go/issues/32017#issuecomment-492152282","issue_url":"https://api.github.com/repos/golang/go/issues/32017","id":492152282,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5MjE1MjI4Mg==","user":{"login":"agnivade","id":1774000,"node_id":"MDQ6VXNlcjE3NzQwMDA=","avatar_url":"https://avatars1.githubusercontent.com/u/1774000?v=4","gravatar_id":"","url":"https://api.github.com/users/agnivade","html_url":"https://github.com/agnivade","followers_url":"https://api.github.com/users/agnivade/followers","following_url":"https://api.github.com/users/agnivade/following{/other_user}","gists_url":"https://api.github.com/users/agnivade/gists{/gist_id}","starred_url":"https://api.github.com/users/agnivade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agnivade/subscriptions","organizations_url":"https://api.github.com/users/agnivade/orgs","repos_url":"https://api.github.com/users/agnivade/repos","events_url":"https://api.github.com/users/agnivade/events{/privacy}","received_events_url":"https://api.github.com/users/agnivade/received_events","type":"User","site_admin":false},"created_at":"2019-05-14T09:02:12Z","updated_at":"2019-05-14T09:02:12Z","author_association":"MEMBER","body":"@mikioh @ianlancetaylor "}}
other: {"actor":{"display_login":"agnivade"}}