K8s coreDNS plugin k8s_external seems not work in my k8s cluster K8s coreDNS plugin k8s_external seems not work in my k8s cluster kubernetes kubernetes

K8s coreDNS plugin k8s_external seems not work in my k8s cluster


The way the k8s_external plugin works skips the svc bit. Try ncs-1-dsx-1.default.bcmt01.nokia.com instead or include the svc. in the zone.


I used to run below commands. dig command seems to succeed, but ping & curl fail, as below:

[root@bcmt-01-control-01 coredns]# kubectl -n kube-system get svc|grep dnskube-dns                    ClusterIP   10.254.0.10      <none>  53/UDP,53/TCP,9153/TCP   8d
[root@bcmt-01-control-01 coredns]# dig @10.254.0.10 ncs-1-dsx-1.default.bcmt01.nokia.com +short135.111.190.183
[root@bcmt-01-control-01 coredns]# curl ncs-1-dsx-1.default.bcmt01.nokia.com:22389curl: (6) Could not resolve host: ncs-1-dsx-1.default.bcmt01.nokia.com; Unknown error
[root@bcmt-01-control-01 coredns]# curl 135.111.190.183:223890▒0x▒)The client sent a request to the Directory Server that could not be properly decoded as an ASN.1 element:  com.unboundid.asn1.ASN1Exception: Unable to decode the provided ASN.1 element ASN1Element(type=47, valueLength=69, valueBytes='54202f20485454502f312e310d0a557365722d4167656e743a206375726c2f372e32392e300d0a486f73743a203133352e3131312e3139302e3138333a32323338390d0a41') as a sequence because the decoded length of an embedded element exceeds the number of bytes remaining..  Data from client: [readBytes=47 45 54 20 2F 20 48 54 54 50 2F 31 2E 31 0D 0A 55 73 65 72 2D 41 67 65 6E 74 3A 20 63 75 72 6C 2F 37 2E 32 39 2E 30 0D 0A 48 6F 73 74 3A 20 31 33 35 2E 31 31 31 2E 31 39 30 2E 31 38 33 3A 32 32 33 38 39 0D 0A 41 unreadBytes=63 63 65 70 74 3A 20 2A 2F 2A 0D 0A 0D 0A]▒1.3.6.1.4.1.1466.20036