From: Wu Fengguang <fengguang.wu@intel.com>
To: Andi Kleen <andi@firstfloor.org>
Cc: David Miller <davem@davemloft.net>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: [PATCH] ipconfig: document DHCP hostname and DNS record
Date: Thu, 3 Jun 2010 10:02:44 +0800 [thread overview]
Message-ID: <20100603020244.GB4461@localhost> (raw)
In-Reply-To: <20100602185601.GB14221@basil.fritz.box>
On Thu, Jun 03, 2010 at 02:56:01AM +0800, Andi Kleen wrote:
> On Wed, Jun 02, 2010 at 07:05:31AM -0700, David Miller wrote:
> > From: Wu Fengguang <fengguang.wu@intel.com>
> > Date: Mon, 31 May 2010 11:19:53 +0800
> >
> > > Normally dhclient can be configured to send the "host-name" option
> > > in DHCP requests to update the client's DNS record. However for an
> > > NFSROOT system, dhclient shall never be called (which may change the
> > > IP addr and therefore lose your root NFS mount connection).
> > >
> > > So enable updating the DNS record with kernel parameter
> > >
> > > ip=::::$HOST_NAME::dhcp
> > >
> > > Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
> >
> > Applied, thanks.
>
> Small nit: Fengguang, please document the new option in
> Documentation/kernel-parameters.txt That could be done in a follow-on patch.
Good suggestion! Here is the document update.
Thanks,
Fengguang
---
ipconfig: document DHCP hostname and DNS record
Now it's possible to update the DNS record for $HOST_NAME with
ip=::::$HOST_NAME::dhcp
CC: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
---
Documentation/filesystems/nfs/nfsroot.txt | 2 ++
1 file changed, 2 insertions(+)
--- linux.orig/Documentation/filesystems/nfs/nfsroot.txt 2010-06-03 09:52:17.000000000 +0800
+++ linux/Documentation/filesystems/nfs/nfsroot.txt 2010-06-03 09:52:19.000000000 +0800
@@ -124,6 +124,8 @@ ip=<client-ip>:<server-ip>:<gw-ip>:<netm
<hostname> Name of the client. May be supplied by autoconfiguration,
but its absence will not trigger autoconfiguration.
+ If specified and DHCP is used, the user provided hostname will
+ be carried in the DHCP request to hopefully update DNS record.
Default: Client IP address is used in ASCII notation.
next prev parent reply other threads:[~2010-06-03 2:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-31 3:19 [PATCH] ipconfig: send host-name in DHCP requests Wu Fengguang
2010-06-02 14:05 ` David Miller
2010-06-02 18:56 ` Andi Kleen
2010-06-03 2:02 ` Wu Fengguang [this message]
2010-06-03 10:20 ` [PATCH] ipconfig: document DHCP hostname and DNS record David Miller
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=20100603020244.GB4461@localhost \
--to=fengguang.wu@intel.com \
--cc=andi@firstfloor.org \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@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;
as well as URLs for NNTP newsgroup(s).