Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Oct 2010 19:52:24 +0200
From:      Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no>
To:        freebsd-stable@freebsd.org
Subject:   Re: How dhcp client can set its hostname properly on lease time
Message-ID:  <20101007195224.9c87af36.torfinn.ingolfsen@broadpark.no>
In-Reply-To: <4CADBF20.1040000@gmail.com>
References:  <4CADBF20.1040000@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 07 Oct 2010 21:37:52 +0900
Mamoru Iwaki <1wkmmr@gmail.com> wrote:

> Are there good way for dhcp client to set its hostname properly on lease
> time?

Well, you *can* have the dhcp client on FreeBSD send an identifier, and
with that identifier the dhcp server can assign the client a static ip
lease. If that static ip is registered in your local dns, you're all
set. Doesn't work well if you use the client on another network who
doesn't offer static ip's. YMMV.

> The following will be a possble workaround, but I'm wondering there can
> be a smart answer in FreeBSD itself.
> 
> It is possible to resolve the hostname corresponding to a dhcp-delivered
> ip-address with a local name server. So, (1) resolve the corresponding
> hostname from the local name server, (2) set it as hostname, and (3)
> call them every time when dhcp lease is updated

Isn't the proper way with dns to configure dynamic DNS updates, and
allow the client to do that?

HTH
-- 
Regards,
Torfinn Ingolfsen




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101007195224.9c87af36.torfinn.ingolfsen>