I've read this article and I'm a little confused. They say:
it IS possible for a DNS server that is NOT an authoritative server for a domain to give an 'authoritative response' to a DNS query for a domain it does not serve
How can we know if the server is indeed authoritative or not? Am I right that we can compare the server IP with the SOA record returned and if the IP is on the NS servers list for the domain in question the server is indeed authoritative?
dig +trace +additional example.comwill show you how the referral chain is followed. – Andrew B Aug 20 '16 at 21:13