dig
responses return flags in the comments section:
$ dig example.com +noall +comments
; <<>> DiG 9.8.3-P1 <<>> example.com +noall +comments
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29045
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
On the last line here, there are flags:
flags: qr rd ra;
What are all the possible flags that dig has?
Here's a list of the ones I've found so far:
- rd – Recursion Desired
- ra – Recursion Available
- aa – Authoritative Answer
- qr – Query?
- cd – Checking Disabled (not sure what this means)
- others?
Best Answer
I am using RFC 1035 as source, keeping to the sequence from there, regardless if you already mentioned it in your question.
There were two more DNSSEC-related flags introduced in RFC 4035: