Article View: fj.net.ip
Article #217Re: ISC-DHCP 2.0pl2 を使ってクライアントに hostname をつけるには?
From: Motoyuki Kasahara
Date: Wed, 12 Jul 2000 00:00
Date: Wed, 12 Jul 2000 00:00
31 lines
2270 bytes
2270 bytes
笠原と申します。
* From: tanaka@nkgw.ics.keio.ac.jp
* Message-ID: <8khaih$aok$1@sheep.ics.keio.ac.jp>
> 結局、ISC-DHCPサーバでは range を使って ip を範囲指定して
> 動的割当を使おうとすると、host-name を配ってくれないようです。
>
> (dhcpd.conf で host statement を使って host 毎の定義をした場合には
> ちゃんと配ってくれたのですが、ネットワークカードを変える可能性が
> あるので MACアドレスでの指定はしたくないのです。)
>
> そこでクライアント側で /etc/dhclient-exit-hooks を使って、
> nslookup から hostname を得る事にしました。
dhcpd.conf で
get-lease-hostnames on;
としておけば、hostname を引いてきて、クライアントに配ってくれます。
ISC-DHCP 2.0 の dhcpd.conf(5):
| The get-lease-hostnames statement is used to tell dhcpd
| whether or not to look up the domain name corresponding to
| the IP address of each address in the lease pool and use
| that address for the DHCP hostname option. If flag is
| true, then this lookup is done for all addresses in the
| current scope. By default, or if flag is false, no
| lookups are done.
________________________________________________________________
笠原 基之(かさはら もとゆき)
Technical Details
Message-ID:
<8khcn9$1mbr$1@sranhh.sra.co.jp>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8kc13i$gic$1@sheep.ics.keio.ac.jp> <396AA495.ACF43E0A@is.kochi-u.ac.jp> <8khaih$aok$1@sheep.ics.keio.ac.jp>Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS X-Google-Thread: 10636f,1f39b7103887d660 X-Google-Attributes: gid10636f,public From: m-kasahr@sra.co.jp (Motoyuki Kasahara) Subject: Re: ISC-DHCP 2.0pl2 を使ってクライアントに hostname をつけるには? Date: 2000/07/12 Message-ID: <8khcn9$1mbr$1@sranhh.sra.co.jp> X-Deja-AN: 645400581 References: <8kc13i$gic$1@sheep.ics.keio.ac.jp> <396AA495.ACF43E0A@is.kochi-u.ac.jp> <8khaih$aok$1@sheep.ics.keio.ac.jp> Content-Type: text/plain; charset=ISO-2022-JP X-Complaints-To: news@sra.co.jp X-Trace: sranhh.sra.co.jp 963393065 55675 133.137.16.37 (12 Jul 2000 09:11:05 GMT) Organization: Software Research Associates, Inc., Japan Mime-Version: 1.0 NNTP-Posting-Date: 12 Jul 2000 09:11:05 GMT Newsgroups: fj.net.ip