PDA

View Full Version : Fedora 8 loosing DNS


elton.sucek
2007-12-26, 05:09 AM CST
Hi, I'm a newbie and was using Fedora 7 until some time ago. Now I installed Fedora 8 and I'm having a strange problem.

Everytime I reboot the system, my DNS configuration is reseted, and I lose connection to the internet.

Everytime I need to edit network configuration to fix it. The IP settings are not lost, only DNS, anyone could help?

Cogar
2007-12-26, 02:10 PM CST
The possibilities are numerous, but I had to work around something like this with F8 and here is what worked for me:

1. Open the Network Configuration application via K Menu --> Settings --> Network. (For GNOME, select System --> Administration --> Network.)
2. In the Devices tab, Highlight your network card and click "Edit."
3. In the General tab, uncheck the "Automatically obtain DNS information from provider" box. This will allow you to edit the name server addresses (DNS addresses) and keep them from being overwritten by DHCP, for example. Click OK.
4. If you don't know the DNS addresses, click the DNS tab. Note the addresses of your primary and secondary DNS servers. Write them down on a piece of paper or store them in a file, since they will probably be blank after restarting the computer. Select File --> Quit. You will be asked if you want to save the changes. Click Yes. You will then be told "Changes are saved. You may want to restart the network and network services or restart the computer."

I understand that issuing the command service network restart in a terminal window should restart the network, but sometimes the result is not the same as a reboot. Use whatever you prefer.

After restarting the network one way or the other, go back to the DNS tab and fill in the DNS addresses. Save the changes. You should now be good to go, although you may have to do one more restart.

away
2007-12-27, 03:58 AM CST
Look into your /etc/sysconfig/network-scripts/ifcfg-eth0 . If there is a directive like PEERDNS=yes, chenge it to PEERDNS=no. That makes your /etc/resolv.conf being overwritten via dhcp queries. Change the directive, and change your /etc/resolv.conf, like
nameserver 58.563......... (the ip of your nameserver)
namesever 5.. (if you have more)
There may be also present lines like "autogenerated from.....and so on" in /etc/resolv.conf. Delete them, only nameservers and their ip-s must remain. And run
service network restart

elton.sucek
2007-12-31, 07:06 AM CST
Thanks for the help Away! But unfortunately it didn't solved my problem. After a restart, DNS is gone... =(

Cogar, I couldn't find this checkbox in my network configuration... There is a TAB where I can write my dns, the isn't a checkbox.

After a reboot, something like "retrieving network address.." shows in taskbar and my configuration is reseted.

Cogar
2008-01-03, 01:24 PM CST
Chances are that we are using different versions of GUI tools. What desktop environment are you running (KDE, GNOME, something else) and what type and version of network manager are you using? (I will have to dig around for the command line method to accomplish this, since I have not done it for some time with Fedora. Maybe someone else will know.)

rockfist
2008-05-23, 09:19 AM CDT
I encountered this same problem when I upgraded to Fedora 9. This is how I solved it. Edit /etc/sysconfig/network-scripts/ifcfg-eth0 and add the following lines with your DNS numbers and DNS search path.

DNS1=###.###.###.###
DNS2=###.###.###.###
SEARCH=foo.bar.org


Then restart you network with

# /sbin/service network restart