Linux: View DNS Server
While Linux provides straight forward command for viewing the ip address configured on your host (ip or ifconfig), none of these commands include information about your DNS servers. To view your DNS servers use:
cat /etc/resolv.confcat /etc/resolv.confcat /etc/resolv.confcat /etc/resolv.confDNS servers are typically managed through the network manager for your distribution, or directly through network configuration files