why the actual DNS was not displayed on the screen?

August 20, 2015 2.2k views

Here is my zone file on my dns.

$ORIGIN f10.work.
$TTL 1800
f10.work. IN SOA ns1.digitalocean.com. hostmaster.f10.work. 1439986690 10800 3600 604800 1800
f10.work. 1800 IN NS ns1.digitalocean.com.
f10.work. 1800 IN NS ns2.digitalocean.com.
f10.work. 1800 IN NS ns3.digitalocean.com.
f10.work. 1800 IN A
*.f10.work. 1800 IN CNAME f10.work.
f10.work. 1800 IN MX 1 mail.f10.work.

root@pengsir:/home/debian8# nslookup  f10.work

Non-authoritative answer:
Name:       f10.work

ping ns1.digitalocean.com
PING ns1.digitalocean.com ( 56(84) bytes of data.

In fact the is my dns,why the actual DNS was not displayed on the screen?

2 Answers

nslookup’s server is referring to your recursor, not the nameserver.

nslookup looks like it’s returning the correct data. The f10.work A record points to, which matches the address that nslookup is reporting under the “Non-authoritative answer” heading.

Dig can produce more concise output. For example, to query one of Digital Ocean’s nameservers, you could run:

$ dig a +short f10.work @ns1.digitalocean.com
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!