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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-24-2002, 11:10 AM
|
#1
|
Member
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180
Rep:
|
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
|
|
|
11-24-2002, 01:36 PM
|
#2
|
Member
Registered: Nov 2002
Location: Rio Rancho, NM
Distribution: RHEL, CentOS & Ubuntu
Posts: 90
Rep:
|
Edit the file /etc/sysconfig/networking/ifcfg-lo
Hope this helps
|
|
|
11-24-2002, 03:44 PM
|
#3
|
Member
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180
Original Poster
Rep:
|
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????
|
|
|
11-24-2002, 04:29 PM
|
#4
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
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.
|
|
|
11-24-2002, 04:43 PM
|
#5
|
Member
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180
Original Poster
Rep:
|
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?
|
|
|
11-24-2002, 04:58 PM
|
#6
|
Member
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538
Rep:
|
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?
|
|
|
11-24-2002, 05:08 PM
|
#7
|
Member
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 12:45 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|