Exam CKA Topic 4 Question 18 Discussion

Actual exam question for Linux Foundation's CKA exam
Question #: 18
Topic #: 4
Your organization uses a private DNS server for internal services and requires all Kubernetes pods to resolve names against this DNS server. You need to configure CoreDNS to forward all DNS requests to this private server.

Suggested Answer:

See the solution below with Step by Step Explanation.
Explanation:
Solution (Step by Step) :
1 . Configure CoreDNS with Forwarding:
- In the CoreDNS ConfigMap, configure the 'forward' plugin to forward all DNS requests to your private DNS server.

2. Test DNS Resolution: - Use the 'nslookup' command from a pod in your cluster to test DNS resolution for internal services. - The requests should be forwarded to the private DNS server, and the corresponding records should be returned.

by Jeff at May 06, 2025, 12:37 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10