1

I've recently upgraded my desktop from 12.04 to 14.04 and now my internet connection isn't working. I can access my router. I can go to Google by entering its IP address.

My resolv.conf file:

nameserver 8.8.8.8
nameserver 8.8.4.4

Per other instructions I've commented out dns=dnsmasq from /etc/NetworkManager.conf

[main]
plugins=ifupdown,keyfile,ofono
#dns=dnsmasq

no-auto-default=00:19:66:45:52:39,

[ifupdown]
managed=false

If I don't have dns=dnsmasq commented out then my resolv.conf has this entry only:

nameserver 127.0.1.1

At this point I am dumbfounded because from everything I know DNS should be working. I'm grateful for any help.

P.S. I should add that prior to the upgrade I had an FTP server running on the desktop for sending images from an office scanner. The scanner can't find the FTP server. Other office computers (including my laptop running 12.04) can use the internet fine.

jkt123
  • 3,600

3 Answers3

2

Okay, I've got DNS working again. Since it appeared that DNS was being configured right I started wondering about iptables. I flushed the current iptables rules and DNS immediately began working. iptables -F However, the problem returns after rebooting. Now it appears to be a matter of making permanent edits to my iptables.

Apparently I had installed lokkit at some point in the past. I did a complete removal of lokkit and the problem was resolved over boot. I could tell that lokkit was involved because the output of sudo iptables -L included references to lokkit.

1

Do you have any particular reason to circumvent the use of dnsmasq? otherwise, I'd suggest reverting your changes to NetworkManager.conf and then reconfiguring the resolvconf package.

After that, you should be able to add your chosen DNS servers via the 'IPv4 Settings' tab of the nm-applet GUI, after changing the mode from 'Automatic (DHCP)' to 'Automatic (DHCP) addresses only'.

steeldriver
  • 142,475
0

Add your desired dns server to /etc/dhcp/dhclient.conf on the line saying supersede domain-nameserver. Separate by comas your dns addresses. Save the file and restart the network manager