I sometimes switch DNS servers, using the NetworkManager indicator in the taskbar; this worked fine with previous versions, and actually works fine with 12.04, too, except for one thing: I use Conky to display some system information, including the DNS address, and I noticed that it is now always displaying 127.0.0.1
.
I looked in resolv.conf
, which is where it gets this address, and sure enough, that's what it always says. I has a single line, with the admonishment not to edit the file by hand:
nameserver 127.0.0.1
The only way I know to check the DNS server address now is to open the network manager GUI to check the info page. So, where is this information stored now?
nmcli
command to list various interesting parameters. Maybe I can whip something useful up and share someplace. I didn't really think Network Manager was required, and I suppose there may be alternate ways for someone to do this, but this works for me. – Marty Fried May 01 '12 at 16:03127.0.0.1
is an instance ofdnsmasq
started by Network Manager (see the output ofsudo netstat -tlnp
). But it is best to think of that as an implementation detail and ask Network Manager for the information you want, since it is the one making the decision here. – James Henstridge May 02 '12 at 00:17nmcli dev list iface
doesn't work for me butnmcli dev show
does [ubuntu 15.04] – Beni Cherniavsky-Paskin Aug 03 '15 at 07:38