What is the meaning of various flags in the output of dig command?

Solution Verified - Updated -

Issue

  • In the output of the dig command, I see the flags line. How to interpret those flags :-
[root@server ~]# dig example.com

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6 <<>> example.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51834
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 2  =======> flags like qr aa rd ra etc. 

;; QUESTION SECTION:
;example.com.                   IN      A

Environment

  • Red Hat Enterprise Linux
  • bind
  • dns
  • dig command

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.