mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Martin Josefsson <gandalf@wlug.westbo.se>
To: Charles-Henri Collin <charlie.collin@free.fr>
Cc: linux-kernel@vger.kernel.org
Subject: Re: ip=dhcp problem...
Date: Sat, 18 Dec 2004 12:59:14 +0100	[thread overview]
Message-ID: <1103371154.12078.61.camel@tux.rsn.bth.se> (raw)
In-Reply-To: <41C40326.3070303@free.fr>

[-- Attachment #1: Type: text/plain, Size: 1143 bytes --]

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.

-- 
/Martin

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2004-12-18 11:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-18 10:15 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 [this message]
2004-12-18 12:10   ` Charles-Henri Collin
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=1103371154.12078.61.camel@tux.rsn.bth.se \
    --to=gandalf@wlug.westbo.se \
    --cc=charlie.collin@free.fr \
    --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

all inboxes | Powered by JetHome®