Question

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 plugservice.com to droplet with ip 139.59.78.183.

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

  3. Afterwards added a user account called michaelco.in through CWP. But domain was not reaching the droplet. So issued #Host michaelco.in and received “Host michaelco.in 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.

b) # systemctl status named.service

● named.service - Berkeley Internet Name Domain (DNS) Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled) Active: active (running) since Thu 2018-02-01 20:51:31 IST; 22min ago Process: 1015 ExecStop=/bin/sh -c /usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID (code=exited, status=0/SUCCESS) Process: 1069 ExecStart=/usr/sbin/named -u named -c ${NAMEDCONF} $OPTIONS (code=exited, status=0/SUCCESS) Process: 1066 ExecStartPre=/bin/bash -c if [ ! “$DISABLE_ZONE_CHECKING” == “yes” ]; then /usr/sbin/named-checkconf -z “$NAMEDCONF”; else echo “Checking of zone files is disabled”; fi (code=exited, status=0/SUCCESS) Main PID: 1072 (named) CGroup: /system.slice/named.service └─1072 /usr/sbin/named -u named -c /etc/named.conf -4

Feb 01 20:52:07 plugservice.com named[1072]: no IPv6 interfaces found Feb 01 20:52:07 plugservice.com named[1072]: sizing zone task pool based on 8 zones Feb 01 20:52:07 plugservice.com named[1072]: /etc/named.conf:20: using specific query-source port suppresses port randomization and can be insecure. Feb 01 20:52:07 plugservice.com named[1072]: /etc/named.conf:20: using specific query-source port suppresses port randomization and can be insecure. Feb 01 20:52:07 plugservice.com named[1072]: reloading configuration succeeded Feb 01 20:52:07 plugservice.com named[1072]: reloading zones succeeded Feb 01 20:52:07 plugservice.com named[1072]: zone michaelco.in/IN: loaded serial 2013071600 Feb 01 20:52:07 plugservice.com named[1072]: all zones loaded Feb 01 20:52:07 plugservice.com named[1072]: running Feb 01 20:52:07 plugservice.com named[1072]: zone michaelco.in/IN: sending notifies (serial 2013071600)

c) dig @ns1.digitalocean.com michaelco.in

; > DiG 9.9.4-RedHat-9.9.4-51.el7_4.2 > @ns1.digitalocean.com michaelco.in ; (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: ;michaelco.in. IN A ;; Query time: 43 msec ;; SERVER: 173.245.58.51#53(173.245.58.51) ;; WHEN: Thu Feb 01 21:18:28 IST 2018 ;; MSG SIZE rcvd: 41

Become a contributor for community

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

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.