DNS problem: SERVFAIL looking up A for

June 6, 2019 497 views
Nginx DNS Ubuntu 18.04

I was following this tutorial to install a SSL certificate to my website: How To Secure Nginx with Let’s Encrypt on Ubuntu 18.04.
When I ran the following command:

sudo certbot --nginx -d woodcraftgallery.com.np -d www.woodcraftgallery.com.np

The following error came up:

 - The following errors were reported by the server:

   Domain: woodcraftgallery.com.np
   Type:   connection
   Detail: dns :: DNS problem: SERVFAIL looking up A for

   Domain: www.woodcraftgallery.com.np
   Type:   connection
   Detail: dns :: DNS problem: SERVFAIL looking up A for

   To fix these errors, please make sure that your domain name was
   entered correctly and the DNS A/AAAA record(s) for that domain
   contain(s) the right IP address. Additionally, please check that
   your computer has a publicly routable IP address and that no
   firewalls are preventing the server from communicating with the
   client. If you're using the webroot plugin, you should also verify
   that you are serving files from the webroot path you provided.

I have the following domain set up:

Domain Type Destination
woodcraftgallery.com.np A
woodcraftgallery.com.np MX 10:mail.woodcraftgallery.com.np
www.woodcraftgallery.com.np CNAME woodcraftgallery.com.np

The IP address is correctly assigned and the HTTP seems to be working fine. I have configured the firewall just as said in the tutorial. Please tell me how I can resolve this issue?

1 comment
  • Type this in your terminal and tell me the IP address that is displayed as an answer

    dig +short myip.opendns.com @resolver1.opendns.com
1 Answer


I believe dig +short myip.opendns.com @resolver1.opendns.com should return your IP address

At the moment woodcraftgallery.com.np is resolving from so I hope you’ve already sorted this.


Have another answer? Share your knowledge.

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