What is the name server information?

Use the following command to get the name server information:

getconf _CS_RESOLVE

If you aren't using the configuration string, type:

cat /etc/resolv.conf