
















bbthomp wrote:"LMDEFan1" Posted this in another forum:
"Re: Linux Mint 13 Cinnamon no longer connects to the Interne
Postby LMDEFan1 on Mon Jul 23, 2012 7:10 pm
dnsmasq usage is causing network connection definitions to be ignored for DNS Servers and Search Domains. This issue is in all the Mint 13 releases from what I have seen. I suspect it's an upstream issue from Ubuntu.
Here’s a fix:
http://lincgeek.org/blog/?p=1529
The script at this link will create a solution that works between system restarts.
If dnsmasq was intentionally implemented there are tons of irritated network and vpn users. Especially those of us who like this distro at work where we have to configure DNS Servers and Search Domains. It also impacts being able to actually make a connection to an Oracle 11g database with the 11g r2 client (and probably any other database and client combination you are trying to reach on your network). Really frustrating. This is one reason I’m hoping Linux Mint becomes Debian based instead of Debian/Ubuntu. Although I realize there is a ton of work done by Ubuntu to polish Debian just as there is a ton of work done by the Linux Mint team to polish Ubuntu to the point we all prefer it over Ubuntu."
The link in the post brings you to this post by "linc"
"
Mint 13 Fix for Broken DNS.
By linc Linux Mint Add comments
I really love Mint, just let me get that out of that way first. That being said, there are usually a couple things I catch, per release, that filter down from Ubuntu, that I wish were taken care of before Mint hits my desktop.
This time it is DNS.
I installed Mint 13 and was cruising around my home network and noticed that my dns searches weren’t appending my local domain. I had to use the FQDN to get to *anything* on my home network. Well, this frustrated me a bit because I worked hard to set up my own home network, I have resources on it including DNS, and I would like to actually use it. So, I went on the hunt for WHY I had to use a fully qualified domain name on my network…
For some strange reason, someone, somewhere thought it would be a great idea to mess with the way we handle DNS. In fact, the way Linux/Unix/unix has traditionally handled DNS for ever. That being if you put stuff ™ in the friggin /etc/resolv.conf file, your DNS just magically works. Well, not any more.
I have done 3 Mint 13 / Cinnamon installs now (assuming that Mate is the same here) and, in fact, THERE IS NO RESOLV.CONF file! What has happened is this, as far as I can tell. Someone in the Ubuntu camp (I assume) decided that it would be a great idea to start using dnsmasq through the NetworkManager to take care of DNS because they wanted to skirt some VPN issues with single homing. In layman’s terms, when you use a VPN, you are *ONLY* supposed to be able to connect to that network to be secure. Using dnsmasq, you could conceivably be on your VPN and route local traffic around too (multi homing). IPSEC guys frost themselves over stuff like this, BTW.
So, I set about to correct this injustice. Here is a simple script you can run which will turn off the dnsmasq garbage, put your resolv.conf files back in place where they belong and start those services back up so stuff works like we have been doing it for 20+ years.
#!/bin/bash
clear
# Test for UID=0
if [ "$(echo $UID)" != "0" ]
then
echo “You must be superuser to run this program. Try ‘sudo ./fixmint13.sh’”
exit
fi
sed -i -e 's/dns=dnsmasq/#dns=dnsmasq/g' /etc/NetworkManager/NetworkManager.conf
ln -s /run/resolvconf/resolv.conf /etc/resolv.conf
resolvconf --create-runtime-directories
resolvconf --enable-updates
reboot
"
Can anyone here tell if this script looks right?
When I get to "fi" it closes terminal on me... and I'm not sure what I'm supposed to expect anyway (after most of the input it just takes me to the next line)
after I put in the line that starts with "sed..." I get:
blake@blake-Adamo-13 ~ $ sed -i -e 's/dns=dnsmasq/#dns=dnsmasq/g' /etc/NetworkManager/NetworkManager.conf
sed: couldn't open temporary file /etc/NetworkManager/sedPScuXM: Permission denied
blake@blake-Adamo-13 ~ $
So, I used "sudo" to gain permission:
blake@blake-Adamo-13 ~ $ sudo sed -i -e 's/dns=dnsmasq/#dns=dnsmasq/g' /etc/NetworkManager/NetworkManager.conf
blake@blake-Adamo-13 ~ $ ln -s /run/resolvconf/resolv.conf /etc/resolv.conf
ln: failed to create symbolic link `/etc/resolv.conf': File exists
blake@blake-Adamo-13 ~ $ resolvconf --create-runtime-directories
resolvconf: Error: /etc/resolv.conf isn't a symlink, not doing anything.
blake@blake-Adamo-13 ~ $ resolvconf --enable-updates
resolvconf: Error: /etc/resolv.conf isn't a symlink, not doing anything.
blake@blake-Adamo-13 ~ $
My intuition tells me this isn't what I'm supposed to be getting
After reboot, nothing has changed (as far as I can tell)


1) Copy that script into a text file and save it, with name of fixmint13.sh, to your home folder. You want to start copying with line: #!/bin/bash and then end with line: reboot
2) Open a console window / terminal. It should open in your home folder. If you type ls and hit enter you should see the fixmint13.sh file in the list of files displayed.
3) Now, in your terminal window, type: sudo ./fixmint13.sh
It will ask your for your password. Once you enter your password it will run the script and reboot your computer so make sure you've saved and closed any other applications you may have open before you run this script.
Once your computer reboots, and you've logged in, you should be able to access the internet.
If you want to see what the changes are to your system open the following files in your text editor:
/etc/NetworkManager/NetworkManager.conf Notice that the following line has been commented out: dns=dnsmasq It's now #dns=dnsmasq
/etc/resolv.conf This file contains the definition for your name servers (DNS servers) as well as any domain and search domains that you have defined in your network connection.
Hope this helps.

lonoy wrote:1) Copy that script into a text file and save it, with name of fixmint13.sh, to your home folder. You want to start copying with line: #!/bin/bash and then end with line: reboot
2) Open a console window / terminal. It should open in your home folder. If you type ls and hit enter you should see the fixmint13.sh file in the list of files displayed.
3) Now, in your terminal window, type: sudo ./fixmint13.sh
It will ask your for your password. Once you enter your password it will run the script and reboot your computer so make sure you've saved and closed any other applications you may have open before you run this script.
Once your computer reboots, and you've logged in, you should be able to access the internet.
If you want to see what the changes are to your system open the following files in your text editor:
/etc/NetworkManager/NetworkManager.conf Notice that the following line has been commented out: dns=dnsmasq It's now #dns=dnsmasq
/etc/resolv.conf This file contains the definition for your name servers (DNS servers) as well as any domain and search domains that you have defined in your network connection.
Hope this helps.
Does this work for Mint 14?
I enter all the above but after "sudo ./fixmint13.sh" it says command not found?
Thanks




xox101 wrote:If they don't work for you then either replace the wireless card with another model or replace Network Manager with WICD. I changed to WICD first but as WICD does not support USB tethering I ended up changing the card to an Atheros one.
viewtopic.php?f=53&t=101961

Users browsing this forum: No registered users and 6 guests