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:

dig google.com

The result is:

C:\Users \asus>dig google.com
google.com.                 104         IN          A           142.250.4.113
google.com.                 104         IN          A           142.250.4.102
google.com.                 104         IN          A           142.250.4.100
google.com.                 104         IN          A           142.250.4.139
google.com.                 104         IN          A           142.250.4.118
google.com.                 104         IN          A           142.250.4.101

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