How to use .digrc

How to use the .digrc file.

The .digrc file is used to modify the information displayed by the dig command.

For example, you can modify the .digrc file to apply +noall and +answer to all dig commands you run:

echo "+noall +answer" > .digrc

Modified digrc file using echo with noall and answer options

Now run the dig command without adding the +noall and +answer options:


The result is:

C:\Users \asus>dig                 104         IN          A                  104         IN          A                  104         IN          A                  104         IN          A                  104         IN          A                  104         IN          A 

Example of dig command after digrc has been modified with noall answer