How to display dns via terminal command

How to display your dns via terminal command:

$ cat /etc/resolv.conf
nameserver 208.67.123.456 – primary
nameserver 208.67.654.321 – secondary

It will display something similar in your screen.

Leave a comment