How to check the DNS I am using on Linux?

My Linux distro is Linux Mint 17 (Ubuntu 14.04.1 LTS (Trusty Tahr)). I am using NetworkManager.

The old trick does not work:

$ cat /etc/resolv.conf 
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
asked Dec 14, 2014 by Eric Z Ma (44,280 points)

1 Answer

 
Best answer

If you are using NetworkManager, the /etc/resolv.conf will point to your machine to dnsmasq as configured by NetworkManager. You can get the real DNS server you will use from NetworkManager by:

nm-tools | grep DNS
answered Dec 15, 2014 by Eric Z Ma (44,280 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...