LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-03-2016, 02:04 PM   #1
TheStr3ak5
Member
 
Registered: Feb 2016
Location: Zaragoza, Spain
Distribution: Xubuntu, Tails, etc.
Posts: 55

Rep: Reputation: 9
How I configure /etc/resolv.conf


I was trying diferent combinations and not works,how i configure that script?
 
Old 03-03-2016, 02:48 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,347

Rep: Reputation: Disabled
/etc/resolv.conf is a configuration file, not a script.

What exactly did you try, and what were you trying to accomplish?

To specify a nameserver, use the "nameserver" directive (for instance, nameserver 8.8.8.8). man resolv.conf will tell you about the various configuration options.
 
Old 03-03-2016, 02:53 PM   #3
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,157

Rep: Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857
Read the book:
http://www.linuxfromscratch.org/lfs/...7/network.html
 
Old 03-03-2016, 03:10 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
resolv.conf gets overwritten by network configuration helpers like DHCPD or NetworkManager. To manage your nameservers with helpers present you have to configure them instead. Only if your network configuration is totally manual - I. E. no helpers are running - editing resolv.conf will work.
 
Old 03-03-2016, 09:10 PM   #5
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
Since your new LFS system booted for the first time only a few hours ago today, I doubt that things like NetworkManager or DHCP and their effect on resolve.conf are involved here yet. I could be wrong in this case though. Sometimes people do like to go straight to dynamic IP addressing over the static IP addressing in the LFS book.

I wonder if your problem is possibly the configuration of your network device (i.e., drivers, firmware, config files, etc.). Anyway, problems with those things seem to be way more common at this early stage IMO.

I recommend that you take a moment to describe what the problem actually is and what you've accomplished so far to configure the network device and confirm it's being brought up and acquiring an IP address from your access point. Resolving DNS addresses is of no importance until that kind of stuff is right and working. Maybe the network device is connected and working, but there's no way to tell from the posts so far.
 
Old 03-04-2016, 02:58 AM   #6
TheStr3ak5
Member
 
Registered: Feb 2016
Location: Zaragoza, Spain
Distribution: Xubuntu, Tails, etc.
Posts: 55

Original Poster
Rep: Reputation: 9
Ok, i am going to explain my problem.
When i rebooted lfs for the first time I tried to conect to google (ping google.com) , i think the error is in the /etc/resolv.conf file, but i am not sure.
How i conect to internet?
 
Old 03-04-2016, 03:01 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,041

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
What's happened exactly? What have you really tried to do? Is there an error message somewhere?
Have you tried traceroute? do you have network at all?
 
Old 03-04-2016, 03:33 AM   #8
TheStr3ak5
Member
 
Registered: Feb 2016
Location: Zaragoza, Spain
Distribution: Xubuntu, Tails, etc.
Posts: 55

Original Poster
Rep: Reputation: 9
I tryed all the resolv.conf nameservers and domains, but no works, when i put ping google.com it shows that messange:
Ping:inaccesible network, i doent tryed traceroute and yes, i have network via ethernet
 
Old 03-04-2016, 03:34 AM   #9
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,041

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
can you ping your router, other hosts on your local network?
 
Old 03-04-2016, 03:50 AM   #10
TheStr3ak5
Member
 
Registered: Feb 2016
Location: Zaragoza, Spain
Distribution: Xubuntu, Tails, etc.
Posts: 55

Original Poster
Rep: Reputation: 9
No, i can not
 
Old 03-04-2016, 04:06 AM   #11
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,041

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
so probably you have no (working) network at all. Can you check it?
 
Old 03-04-2016, 04:40 AM   #12
TheStr3ak5
Member
 
Registered: Feb 2016
Location: Zaragoza, Spain
Distribution: Xubuntu, Tails, etc.
Posts: 55

Original Poster
Rep: Reputation: 9
i have network yes, when i am in the host system (xubuntu) all works correctely,when i go to lfs all eth0 goes bad.
 
Old 03-04-2016, 04:41 AM   #13
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,041

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
what do you mean by "all eth0 goes bad" ?
 
Old 03-04-2016, 05:29 AM   #14
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
its, abit hard to follow, have you booted into lfs and there is no network?

output
Code:
ip addr
would help and post you resolve.conf from lfs.
 
Old 03-04-2016, 07:00 AM   #15
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
Actually lspci -k would help to see if the driver is loaded.
 
  


Reply



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
resolv.conf c0mputerking Linux - Software 18 12-20-2007 02:03 AM
DNS Hosts.conf or resolv.conf problem mac_casey SUSE / openSUSE 0 03-26-2006 09:21 AM
Who changes /etc/resolv.conf? lmp Debian 4 11-29-2005 08:08 AM
configure jay's firewall to use dns in /etc/resolv.conf TheOneAndOnlySM Linux - Software 0 03-29-2004 07:27 PM
How to configure resolv.conf and_deva Linux - Software 1 07-02-2003 08:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:48 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration