k3s/pkg/proxy
Kubernetes Submit Queue f706b81007 Merge pull request #45642 from JiangtianLi/jiangtli-fixdns2
Automatic merge from submit-queue

Fix the issue in Windows kube-proxy when processing unqualified name. This is for DNS client such as ping or iwr that validate name in response and original question.

**What this PR does / why we need it**:
This PR is an additional fix to #41618 and [the corresponding commit](b9dfb69dd7). The DNS client such as nslookup does not validate name matching in response and original question. That works fine when we append DNS suffix to unqualified name in DNS query in Windows kube-proxy. However, for DNS client such as ping or Invoke-WebRequest that validates name in response and original question, the issue arises and the DNS query fails although the received DNS response has no error. 

This PR fixes the additional issue by restoring the original question name in DNS response. Further, this PR refactors DNS message routines by using miekg's DNS library.

This PR affects the Windows kube-proxy only.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #42605 

**Special notes for your reviewer**:

**Release note**:

```release-note
Fix DNS suffix search list support in Windows kube-proxy.
```
2017-05-17 23:48:27 -07:00
..
config Remove no-longer used code in proxy/config 2017-05-10 12:16:35 +02:00
healthcheck Autogenerated files 2017-05-05 14:44:38 -07:00
iptables Revert "Remove reasons from iptables syncProxyRules" 2017-05-17 16:33:13 -07:00
userspace Switch userspace proxy to be event based for services 2017-05-05 09:35:38 +02:00
util autogenerated 2017-04-14 10:40:57 -07:00
winuserspace Add error to function return 2017-05-11 00:30:07 -07:00
BUILD autogenerated 2017-04-14 10:40:57 -07:00
OWNERS Trim down to the folks I think have real context 2016-11-15 08:48:31 +01:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
types.go kube-proxy: OnServiceUpdate takes pointers 2017-04-03 17:19:39 -07:00