How To Find DNS Server Addresses in Linux

The resolver is a set of routines in the C library that provide access to the Internet Domain Name System (DNS). The resolver configuration file contains information that is read by the resolver routines the first time they are invoked by a process.

In Linux/BSD/Unix systems you can run the following command to view the current DNS seerver(s) from a shell prompt:

cat /etc/resolv.conf

See also:

Leave a Reply

Your email address will not be published. Required fields are marked *