LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   possible DNS problems in ubuntu Feisty (https://www.linuxquestions.org/questions/linux-networking-3/possible-dns-problems-in-ubuntu-feisty-539816/)

CSandman 03-22-2007 10:34 PM

possible DNS problems in ubuntu Feisty
 
Hey guys,
I just upgraded to Ubuntu's newest release, I know I know its still in alpha till this weekend but i couldn't wait! Just about everything went fine! In Edgy everything worked great except for my wireless card and the drivers for my graphics card which was a big incentive to try feisty. In feisty now my wireless card is recognized and i can connect and everything works fine on my university's wireless networks but on my home network it is really really slow! Using the network tools I can ping every website I've tried but the traceroute gets about half way there and times out. I've disabled ipv6 system wide and in firefox, and I've tried through the network manager to set the DNS addresses. For some reason Network manager tends to change the DNS back to my router IP. I've also attempted to change the DNS addresses in /etc/resolv.conf but same thing, the file comments that the file is generated by network manager so I believe it is replaced everytime network manager starts up. I'm not sure what to do about this.

I'm running a new Toshiba Satellite Pro A100-ED5 with the following specs...
network card: Atheros AR5006EG chipset
Graphics Card: ATI Xpress 200m graphics card
Audio Card: ATI HDA SB450 Audio card
Its an Intel Celeron with a gig of ram
//Just as a comment everything works fine (including my wireless network) in windows XP :(

Thanks in advance for the help!

saavik 03-24-2007 07:06 AM

Correct!

AFAIK the network manager can change the resolve.conf.

You should be able to switch this of (as you do not like what he does). But I can not remember where that was....

digen 03-24-2007 07:28 AM

A wild idea.. you could edit the file /etc/resolv.conf with the name server entries you want to use. You could then make the file immutable,

Quote:

digen@emily:~$ chattr +ia /etc/resolv.conf
Quote:

digen@emily:~$ lsattr /etc/resolv.conf
----ia----------- /etc/resolv.conf
This way the file /etc/resolv.conf wouldn't get overwritten when getting an IP address via DHCP. Do correct me if I'm wrong.

JimBass 03-24-2007 08:41 AM

I would do it by editing /etc/dhclient.conf. What is written above seems like it should work, but you'll have to undo that every time you go to a different network. You'll have to do that with my method as well, but it is just adding/removing a comment in one line of a file, not messing with its permissions.

In /etc/dhclient.conf, you have a line that is commented out that says:
Code:

#  option domain-name-servers 127.0.0.1;
I would remove the comment at the beginning of the line, and change the IP address from 127.0.0.1 to whatever the correct address(es) are for the name server that you want. It should look like:
Code:

option domain-name-servers A.B.C.D;
Then if you take your laptop somewhere else, the DNS you specify normally isn't likely to work. In this case, put the comment back in the line discussed, and restart the networking. You'll get a DNS server from DHCP in that way, and you can again uncomment it when going back to school.

Peace,
JimBass

CSandman 03-26-2007 08:08 AM

What if by a strange coincidence there is absolutely nothing in the file /etc/dhclient.conf ? I tried adding the line that you suggested I uncomment, so it was the only line in the file and it didn't do anything.

I have a sneaking suspicion that it might be the way my router is talking to my feisty install because although wireless doesn't work in edgy a wired connection works just fine.

Any other suggestions?

JimBass 03-26-2007 08:31 AM

Two things. First, it is possible the Ubuntu guys put the file in a subdirectory, maybe something like /etc/dhcp? I would search for the file with this command -

Code:

find /etc -name dhclient.conf -print
If it is in a different location, just edit it where it stands.

If you actually don't have one, that makes things more complicated. I can give you the full text of my file, but if your system don't have it, simply adding it won't get it read, it needs to be called by some other process.

Did you upgrade your old install to Feisty, or did you reinstall? It is possible you have bad firmware that allows unencrypted wireles traffic, but not encrypted. Please check to see if you have firmware installed for your wireless card.

Peace,
JimBass

CSandman 03-27-2007 11:19 PM

It is a fresh install from the Beta iso recently released and the restricted drivers manager is using the most recent drivers for my card, so I don't think its that. I will try and find the file you mentioned though, I've noticed that although ubuntu is a great distro they have a couple of things in different places so its sometimes a problem on a site that deals with so many distros! I'll get back to you when I have a chance to see what I can see.

tominglis 04-03-2007 12:14 PM

Feisty networkmanager slow DNS problems.
 
Hi guys,

I am having a similar problem in Feisty.

Whether I connect via ethernet or wireless, networkmanager assigns the router's IP as the top DNS server, and this seems to cause substantial delays when looking up DNS addresses. When I manually remove this IP from the list, lookup speeds are back to normal.

Have you found a solution to this yet?

Tom


All times are GMT -5. The time now is 03:05 AM.