How to "fix server can't find external_domain: SERVFAIL" inside pod

Hello! I am using DO managed Kubernetes and I’ve met the following problem: My services try to send a request to but instead of a response, my service gets an error. Here is nslookup output:

Non-authoritative answer:
** server can't find SERVFAIL

Then I tested this domain on my own laptop and everything was fine:

Non-authoritative answer:

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
August 25, 2023

Hi there,

The DigitalOcean Kubernetes uses CoreDNS for cluster DNS management.

I could suggest a couple of things here:

  1. Check the logs of the CoreDNS pods to see if there’s any specific error or warning that might indicate what’s going wrong. You can do this with:

    kubectl -n kube-system logs -l k8s-app=kube-dns
  2. Sometimes, simply restarting the CoreDNS pods can solve transient issues. You can do this with:

    kubectl -n kube-system rollout restart deployment coredns
  3. You can view the CoreDNS settings used by DOKS in the CoreDNS’s configuration file using the following command:

kubectl get configmap -n kube-system coredns -o yaml

Also for more informaiton on how to customize the CoreDNS settings, I could suggest the following guide:



Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel