Dns issue - Host domain.tld not found: 2(SERVFAIL)

[My level of knowledge with vps , linux and bind dns settings are at learning/begginer stage]

  1. Added domain/PTR to droplet with ip

  2. Then somehow setup a vanity nameserver named ns1/ns2/ pointing to ns1/ns2/ Hope it is working fine.

  3. Afterwards added a user account called through CWP. But domain was not reaching the droplet. So issued #Host and received “Host not found: 2(SERVFAIL)” error.

Can anyone please help me to fix the issue?

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.

Accepted Answer

The issue is solved. It was due to missing A records for NS1/NS2/NS3 vanity nameservers in the droplet’s DNS manager.

d) #cat /var/named/

; Generated by CWP ; Zone file for $TTL 14400 86400 IN SOA ( 2013071600 ; serial, todays date+todays 86400 ; refresh, seconds 7200 ; retry, seconds 3600000 ; expire, seconds 86400 ) ; minimum, seconds 86400 IN NS 86400 IN NS IN A IN A IN MX 0 mail IN CNAME www IN CNAME ftp IN CNAME ; Add additional settings below this line

c) dig

; > DiG 9.9.4-RedHat-9.9.4-51.el7_4.2 > ; (2 servers found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 47277 ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1 ;; WARNING: recursion requested but not available ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 512 ;; QUESTION SECTION: ; IN A ;; Query time: 43 msec ;; SERVER: ;; WHEN: Thu Feb 01 21:18:28 IST 2018 ;; MSG SIZE rcvd: 41

Try DigitalOcean for free

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

Sign up

Featured on Community

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