nginx / nginx/docker-nginx

kubernetes local dns issue

Open
#438 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
3.5k
Forks
1.8k
Avg merge
42m
Merged PRs (30d)
2

Description

Latest version/or 1.17.... can't resolve kubernetes service name from core-dns.
I am getting this error.
server can't find [servicename].svc.cluster.local: NXDOMAIN
If you sh to created pod run nslookup:
$ kubectl run --image nginx:1.17-alpine --restart=Never --rm -it nginx -- sh
/# nslookup kubernetes.default

error is:
** server can't find kubernetes.default: NXDOMAIN

Same works with 1.16-alpine.

Is this something to do with https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/#known-issues

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the kubectl run and nslookup commands from the report with pinned 1.16-alpine and 1.17-alpine images. Compare the results with Kubernetes' DNS debugging guidance; done means identifying a reproducible image-related cause and fix, or confirming that the problem belongs outside docker-nginx.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, kubernetes
Domain
devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.