Need help with this tutorial:

September 8, 2016 134 views
DigitalOcean Articles Ubuntu 16.04

When I do nslookup app2 (or app1, ns1, ns2 depnding on which droplet i am on) I always get the external IP address of my ns1 - any ideas where I have gone wrong? Anything in italics are just placeholder values.


Non-authoritative answer: canonical name =
Address: 436.202.70.342

2 Answers

This seems to indicate that the domain's zone includes a CNAME record that is causing this response. Can you share the zone file you are using for your domain so we can identify the issue?

A CNAME will direct any requests for the specified name to the ip address associated with the second name so if is CNAME'ed to the A record for is used to determine the IP.

Are you wanting to get the localhost settings for the DNS query?

If so, try dig app2 @localhost

Have another answer? Share your knowledge.