How to check dns ip address used in my Linux computer?

My friend asked me yesterday on how to view dns ip address in Linux. She used Linux ifconfig command but there is no dns information in the result. I told her to google because I felt kind of annoying. I know there must be something serious in her head that makes she forgot things. Otherwise how can she forgot a simple thing as viewing /etc/resolve.conf file?

Add new comment