So you just upgraded to Ubuntu Gutsy and you cannot get the Internet to work? You appear to have a LAN connection or Network-Manager is allowing you to connect to your access point, yet when you type in http://www.google.com, the domain will not resolve – it just keeps reading ‘connecting’. Why? Use of of ipv6 – 99% of the time.
Yeah great, so how about a working connection!
Because most of you could care less why it’s not working, let’s look at getting it working again, shall we? First, because this is about ipv6 issues, let’s make sure this is the problem. Run this from a terminal window:
dig AAAA www.kame.net
Did it time out? Then try this one:
dig A www.kame.net
Did the latter work? Then it is indeed, an issue with ipv6 and you have a few options here.
1) Check for a firmware upgrade for your NIC or modem.
2) Open a terminal window and copy/paste this in:
gksudo gedit /etc/modprobe.d/blacklist
…someplace at the bottom. Here is an example:
# This file lists those modules which we don't want to be# loaded by # alias expansion, usually so some other driver will be# loaded for the # device instead.# evbug is a debug tool that should be# loaded explicitly blacklist evbug # these drivers are very simple, the HID drivers are# usually preferred blacklist usbmouse blacklist usbkbd # replaced by e100 blacklist eepro100 # replaced by tulip blacklist de4x5 # causes no end of confusion by creating unexpected# network # interfaces blacklist eth1394 # snd_intel8x0m can interfere with snd_intel8x0,# doesn't seem to support much# hardware on its own (Ubuntu bug #2011, #6810) blacklist snd_intel8x0m# causes failure to suspend on HP# compaq nc6000 (Ubuntu: #10306) blacklist i2c_i801 # buggy driver causes kernel BUG on load (Ubuntu: #78255, #88430) blacklist r818x blacklist r8187
OK, so that is a lot of stuff. All you need to do is add blacklist ipv6 to the tail end of that mess, like so:
...Lots of other stuff too long to list yet again... # buggy driver causes kernel BUG on load (Ubuntu: #78255, #88430) blacklist r818x blacklist r8187 # Matt made me do this so I can have my Internet back!!!! blacklist ipv6
That’s all there is to it, now save the file and restart the PC. If all went well, you should find that you are able to browse the web without issues relating to slow DNS issues.
Matt, we need a script that does this for us!!
If you would rather have a script to help you with opening the right file for editing, download this file. Then after saving it to your desktop, right click on it and choose the ‘Permissions’ tab, then select the ‘Execute’ option by clicking it. This will do everything for you and blacklist ipv6 for you ‘auto-magically‘.
Just be darn sure to run this in the terminal when prompted after double clicking it.If you are still having a problem, try this. If you find that this is more than you want to deal with just to use OpenDNS, then simply pick your router and allow Ubuntu to do as it is likely already doing, acting as your DNS server. Just add the OpenDNS info for the router you own and that ought to help with any remaining DNS related issues.
Again, this tutorial is for those with DNS (domain resolving issues). If you are using wifi and have not had any luck connecting, try this post instead.