Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-20-2009, 11:48 PM   #1
LQ Newbie
Registered: Apr 2009
Posts: 4

Rep: Reputation: 0
How to configure DNS settings from init 3 in Fedora 10

I have Fedora 10 installed and have been running it a few months. DNS settings are wiped on reboot as others here have mentioned.
It was a slight nuisance to reset them each time.
Someone suggested that I remove the line

auth required user != root quiet

from /etc/pam.d/gdm.

Bad mistake!

Now I cannot log into the desktop. I have used terminal single user mode to replace the missing line, but still am not able to log into desktop.

I need to know how to config DNS settings from init 3 su mode.

I want to reinstall yum and gdm from that space, but I can't get out to the internet.

I can ping around my lan but not outside.

So how do I configure dns from init 3 su mode?

I am seriously new to linux

Last edited by njoydavid; 04-20-2009 at 11:49 PM.
Old 04-21-2009, 06:53 AM   #2
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 307

Rep: Reputation: 38

By putting that back in and rebooting you should have been ok.

If you have a network behind a standard router/modem that is running DHCP you should be ok by just doing:

sudo dhclient eth0

The reason why you can't get out will be because either the DNS resolution isn't working correctly (please give me the output of /etc/resolv.conf) or the Router isn't set as the Default Route. Again, type `sudo route` and post the output for more help
Old 04-21-2009, 12:30 PM   #3
LQ Newbie
Registered: Apr 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the reply arckane,

sudo dhclient eth1 did not work. I'm unable to use eth0. it's on-board and never worked properly. So I've been connecting through a card.

/etc/resolv.conf is empty.

I added a nameserver and was able to get out on the net and do some reinstalls, so you've helped with the problem at hand.

Still, something else is amiss, so it's off to explore ways to resolve those problems.

I'm looking at this site for reference, in case anyone else out there is having my problem.

I really like this site. I think linux is going to be a great adventure.

It's quite a challenge.
Old 04-21-2009, 07:51 PM   #4
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,396

Rep: Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395
For the gnome desktop etc, you could try
yum groupinstall "GNOME Desktop Environment"
if you've got yum working.
For listing all avail groups its
yum grouplist
Old 04-21-2009, 11:35 PM   #5
LQ Newbie
Registered: Apr 2009
Posts: 4

Original Poster
Rep: Reputation: 0
I'm back up and able to log in as usual. In fact I'm browsing from my linux box, thank you very much.

The solution I found was to log in as single user

single user

init 3

login as root

yum remove gdm
yum install gdm

Seems that I created lots of inconsistencies with trying to edit without knowing what I was doing.

Best route is to have the system remove the corruptions and reinstall clean.

It's been a good learning session.

Thanks to all for your help.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 10 won't remember DNS settings on reboot Laserjock Linux - Newbie 6 03-31-2009 09:29 AM
how to configure master dns in windows2003 server and its slave dns in rhel5 suneellinux Linux - Newbie 1 04-11-2008 05:13 PM
How do I configure DNS suffix in Fedora Core 6 dperryr Linux - Newbie 1 11-01-2007 06:52 AM
Network settings / DNS Server settings uid0sd Linux - Newbie 3 02-22-2007 03:39 PM
init level settings rufius Linux - General 1 04-29-2003 06:57 PM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration