How to find a website's DNS (name server) address

Originally published at:

How can I find a website’s DNS address? How do I check the current DNS servers of a domain or website using a Linux or macOS command line option? How do I find DNS address of a website using bash?

Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki