Coredns: nslookup: can't resolve '(null)': Name does not resolve

Created on 11 Oct 2018  路  5Comments  路  Source: coredns/coredns

Environment: kubernetes 1.11 coredns1.0.6 alpine3.8
kubernetes config: ipvs
uname -a
Linux master01 4.18.3-1.el7.elrepo.x86_64 #1 SMP Sat Aug 18 09:30:18 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux

error:

/ # nslookup myip
nslookup: can't resolve '(null)': Name does not resolve

Name: myip
Address 1: 10.1.21.161 myip.default.svc.cluster.local

kubernetes needs info question

Most helpful comment

dig: command not found

All 5 comments

To be clear, assuming everything after "error:" is the output you get, you _are_ getting an answer... Address 1: 10.1.21.161 myip.default.svc.cluster.local .. so you are getting an error and an answer at the same time, probably to two separate questions/queries. nslookup output is just presented in a confusing way.

I suspect it's a AAAA request that nslookup is asking at the same time as the A request for the same name.

You could turn on logging in CoreDNS to verify.

please use dig; nslookup is pretty much useless for dns debugging.

dig: command not found

apk add bind-tools to install dig

If you are on Ubuntu -
apt install dnsutils

Was this page helpful?
0 / 5 - 0 ratings

Related issues

miekg picture miekg  路  4Comments

miekg picture miekg  路  6Comments

guihkx picture guihkx  路  6Comments

marcin54321 picture marcin54321  路  5Comments

qrr1995 picture qrr1995  路  3Comments