0

Somehow I've clobbered my whole DNS system in 16.04.
I now must edit /run/resolvconf/resolv.conf to add a name server such as nameserver 8.8.8.8 or similar.
Of course, this always disappears after a reboot.
(And, yes, I KNOW I'm not supposed to hack it this way!)

NOTE: I'm accessing the router through wifi, not Ethernet.

I have tried editing /etc/NetworkManager/NetworkManager.conf - it currently shows

[main]  
plugins=ifupdown,keyfile,ofono  
dns=dnsmasq  
[ifupdown]  
managed=false 

I've tried commenting out the dns= line but still the problem persists. I have tried edited the ipv4 params in the wifi-settings, attempting to use either static or auto - but it's still no go after a reboot.

Currently my `/etc/network/interfaces shows

# interfaces(5) file used by ifup(8) and ifdown(8)  
auto lo  
iface lo inet loopback  
address 192.168.200.44  
netmask 255.255.255.0   
gateway 192.168.200.1  
dns-nameservers 8.8.4.4** 

I added the IP-data lines there as a last resort. Presumably, they mean nothing if I have used "loopback" instead of "static", right?

Ideally, I'd like to use DHCP instead of a static, but use my own nameservers such as google or OpenDNS.
So where can I look to see what the problem with BOTH my DNS and Static is?

Tony Lancer
  • 1,003
aqk
  • 331

1 Answers1

1

First, as it is badly malformed, return your /etc/network/interfaces file to default:

# interfaces(5) file used by ifup(8) and ifdown(8)  
auto lo  
iface lo inet loopback  

Second, you can easily set your own DNS nameservers in Network Manager like this: https://farm4.staticflickr.com/3898/14334590042_3c72168038_o.jpg

After making these changes, reboot and let us hear your report.

chili555
  • 61,330