public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Charles-Henri Collin <charlie.collin@free.fr>
To: Martin Josefsson <gandalf@wlug.westbo.se>
Cc: linux-kernel@vger.kernel.org
Subject: Re: ip=dhcp problem...
Date: Sat, 18 Dec 2004 13:10:21 +0100	[thread overview]
Message-ID: <41C41E2D.3010306@free.fr> (raw)
In-Reply-To: <1103371154.12078.61.camel@tux.rsn.bth.se>

Martin Josefsson a écrit :

>On Sat, 2004-12-18 at 11:15, Charles-Henri Collin wrote:
>  
>
>>Hi,
>>
>>I've got the following problem with linux 2.6.8.1:
>>I'm nfs-rooting a diskless client with kernel parameter ip=dhcp.
>>My dhcpd.conf  has a "option domain-name-servers X.X.X.X;" statement and 
>>"get-lease-hostnames true;"
>>Now when the diskless clients boot, no name-server configured and they 
>>cant resolv.
>>dmesg gives me, for instance:
>>
>>IP Config: Complete:
>>    device=eth0, addr=192.168.0.237, mask=255.255.255.0, gw=192.168.0.1,
>>    host=clientFSB-237.fsb.net, domain=fsb.net, nis-domain=FSBnis,
>>    boot-server=192.168.0.254, rootserver=92.168.0.254, rootpath=
>>
>>So as you can see, everything is almost set up, except a nameserver!
>>Has anyone heard about that problem before? Are there any fixes?
>>    
>>
>
>The fix is to make sure you have a nameserver in your /etc/resolv.conf
>The kernel has no idea how to resolve names into addresses. That's a
>userspace thing. I'm not sure if you can extract the dhcp info from the
>kernel after the boot, otherwise you'll just have to run a userspace
>dhcp client, I use dhclient.
>
>  
>
i should put a /etc/resolv.conf.... but i dont want, for "dark reasons" ;)
if i have a /etc/resolv.conf, what's the point in querying the dhcp 
server for a nameserver???
i thought this would set linux a nameserver in case no /etc/resolv.conf 
was find.
btw, i can't dhclient has i'm nfs-rooting. doing this breaks my 
connection with the nfs server and i lose / !!!!!
i'm working on it.
thanks anyway

regards,
 COLLIN



  reply	other threads:[~2004-12-18 12:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-18 10:15 ip=dhcp problem Charles-Henri Collin
2004-12-18 10:51 ` Andreas Unterkircher
2004-12-18 11:00 ` Jan Engelhardt
2004-12-18 11:52   ` Charles-Henri Collin
2004-12-18 11:59 ` Martin Josefsson
2004-12-18 12:10   ` Charles-Henri Collin [this message]
2004-12-18 12:24     ` Martin Josefsson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41C41E2D.3010306@free.fr \
    --to=charlie.collin@free.fr \
    --cc=gandalf@wlug.westbo.se \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox