Search code examples
network-programmingcomputer-sciencedig

Determining if some dig answer is authoritative or not


I'm being asked to determine whether this dig answer is authoritative or not.

I'd say yes, but I am not too keen on that.

The rationale behind believing it is indeed authoritative is that the AUTHORITATIVE SECTION contains two addresses, that from what one can see from the ADDITIONAL SECTION map to 194.117.22.138 and 10.101.85.6.

We know that this answer was replied from 194.117.22.138, so it must be the case that the server is authoritative.

Is my reasoning correct or am I taking the wrong approach here?

enter image description here


Solution

  • Please see DNS response flags on the third line of dig output. There is a flag named aa which means "authoritative answer".