{"action":"opened","issue":{"url":"https://api.github.com/repos/netty/netty/issues/4937","repository_url":"https://api.github.com/repos/netty/netty","labels_url":"https://api.github.com/repos/netty/netty/issues/4937/labels{/name}","comments_url":"https://api.github.com/repos/netty/netty/issues/4937/comments","events_url":"https://api.github.com/repos/netty/netty/issues/4937/events","html_url":"https://github.com/netty/netty/issues/4937","id":138619349,"number":4937,"title":"Netty 4.1.0.CR1: DNS resolver do not treat non-ASCII characters correctly","user":{"login":"jonas-ren","id":1539669,"avatar_url":"https://avatars.githubusercontent.com/u/1539669?v=3","gravatar_id":"","url":"https://api.github.com/users/jonas-ren","html_url":"https://github.com/jonas-ren","followers_url":"https://api.github.com/users/jonas-ren/followers","following_url":"https://api.github.com/users/jonas-ren/following{/other_user}","gists_url":"https://api.github.com/users/jonas-ren/gists{/gist_id}","starred_url":"https://api.github.com/users/jonas-ren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonas-ren/subscriptions","organizations_url":"https://api.github.com/users/jonas-ren/orgs","repos_url":"https://api.github.com/users/jonas-ren/repos","events_url":"https://api.github.com/users/jonas-ren/events{/privacy}","received_events_url":"https://api.github.com/users/jonas-ren/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-04T23:44:54Z","updated_at":"2016-03-04T23:44:54Z","closed_at":null,"body":"When resolving a domain name containing non-ASCII characters, Netty would send out DNS query but reject the response because the DnsQuestion doesn't match.\r\n\r\nFor example, when resolving www.äüöß.com, I'm getting:\r\n<code>\r\n04 Mar 2016 15:33:39,309 [WARN] (dns-response-handler-0) io.netty.resolver.dns.DnsQueryContext: Received a mismatching DNS response: DatagramDnsResponse(from: /x.x.x.x:53, to: /0:0:0:0:0:0:0:0:59756, 1499, QUERY(0), ServFail(2), RD RA)\r\n\tDefaultDnsQuestion(www.����.com IN A)\r\n\tDefaultDnsRawRecord(OPT flags:0 udp:4000 0B)\r\n</code>\r\n\r\nLooks like it's caused by a difference in encoding. I think the resolver should either validate the input domain name based on http://www.ietf.org/rfc/rfc1738.txt, or just fix the encoding."}}