How to test and validate DNSSEC using dig command line

Originally published at: https://www.cyberciti.biz/faq/unix-linux-test-and-validate-dnssec-using-dig-command-line/

How do I test and validate DNSSEC using the line under Linux, macOS, *BSD, and Unix-like systems?