Mac scutil --dns | grep 'nameserver\[[0-9]*\]'
scutil --dns | grep 'nameserver\[[0-9]*\]'
Linux cat /etc/resolv.conf
cat /etc/resolv.conf