LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 11-24-2002, 11:10 AM   #1
peeples
Member
 
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180

Rep: Reputation: 30
Where do I specify DNS servers?


To make a long story short, I screwed up and had to start again. I've completed LFS4.0, got started into BLFS and have completed XFree86-4.2.1 and Mozilla 1.2. When I try to get on the 'net, I get a "not found" (I'm sure that google is there today, aren't they???). My host distro required that I input my ISP's DNS servers. Where do we put these numbers for LFS? I found that RH7.3 uses a file called resolv.conf but I can't seem to find this in the LFS book. Am I just stOOpid or is it not there. I can't look at the BLFS, because something is wrong with it today (says: "Forbidden: you don't have permissions to access /blfs/intro.shtml on this server")

Where do I put the IP address for my ISP's DNS server?

Thanks.

Denny
 
Old 11-24-2002, 01:36 PM   #2
shelby
Member
 
Registered: Nov 2002
Location: Rio Rancho, NM
Distribution: RHEL, CentOS & Ubuntu
Posts: 90

Rep: Reputation: 15
Edit the file /etc/sysconfig/networking/ifcfg-lo

Hope this helps
 
Old 11-24-2002, 03:44 PM   #3
peeples
Member
 
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180

Original Poster
Rep: Reputation: 30
Unless I did something drastically wrong, there is NO networking directory under /etc/sysconfig in LFS4.0. The only sub-directory in there is network-devices, and I can't find anything to do with DNS in that directory.

It is there in my Redhat system, but ifcfg-lo has nothing to do with the IP addy of the DNS servers.

But, thanks for the response. Anyone else on where to input the IP of my ISP's DNS servers for LFS4.0????
 
Old 11-24-2002, 04:29 PM   #4
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 46
Have you tried just putting it in a file called /etc/resolv.conf? That's where
it's always been on all the unices I've used.
 
Old 11-24-2002, 04:43 PM   #5
peeples
Member
 
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180

Original Poster
Rep: Reputation: 30
Yeah, as a matter of fact, I just copied the resolv.conf from my host distro into my LFS. But, somewhere in the bootscripts that file has to be called up and read, right?

It didn't make any difference to my problem.

Anybody else?
 
Old 11-24-2002, 04:58 PM   #6
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
I think that if you put the dns servers in /etc/resolve.conf in this syntax:

nameserver 206.13.28.12
nameserver 206.13.29.12

then that part of it should be o.k.

Are you using dhcp (that sets the resolv.conf automatically)? do you have your gateway set up? can you ping your gateway?

what does /etc/sysconfig/network and /etc/sysconfig/network-devices/ifconfig.eth* look like?
 
Old 11-24-2002, 05:08 PM   #7
peeples
Member
 
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180

Original Poster
Rep: Reputation: 30
Problem resolved (pardon the pun).

Boy, now I really feel stoopid. I had copied the file from my host distro into my LFS. Neglected to check permissions once it was copied (they were at 600), when I changed 'em to 644, everything works like a charm. In fact, this is the first post from my newly minted LFS4.0 (second time throught the book).

Thanks guys.
 
  


Reply


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
dns servers? jungleking Linux - Newbie 2 09-17-2005 11:00 AM
lame dns servers etc and general dns issues suse_linux9.1 Linux - Networking 3 06-01-2004 01:50 PM
DNS Servers dboogie Linux - Newbie 4 05-27-2004 03:17 PM
DNS Name servers? jadal Linux - General 2 05-16-2004 02:21 AM
DNS Servers anticoffee Linux - Networking 2 07-25-2002 07:46 AM


All times are GMT -5. The time now is 07:21 PM.

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