Study. uk . com
  1. Home
  2. All questions
  3. Question 770

CKA study material · question 770 of 1000

Reading a Pod's /etc/resolv.conf you find options ndots:5. What does the kubelet write it for?

  1. To limit the number of search domains to five
  2. To cap DNS retries at five attempts
  3. So names with fewer than five dots are tried against the search list first
  4. To set a five second resolver timeout
Show the answer

Answer: C. So names with fewer than five dots are tried against the search list first

The kubelet writes search entries for the Pod's namespace, svc and the cluster domain along with ndots:5, so short in-cluster names are expanded before being tried as absolute names.

Source: DNS for Services and Pods (Kubernetes) — Namespaces of Services

Challenge yourself on this topic → Study as cards