<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Thu, Dec 29, 2016 at 1:06 PM Albert ARIBAUD <<a href="mailto:albert.aribaud@free.fr" target="_blank">albert.aribaud@free.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What you want is provided by option host-record, and manage two files:<br class="m_-5966795294056462419gmail_msg">
the static lease file (the one in step 2) to map the MAC and IP via DHCP<br class="m_-5966795294056462419gmail_msg">
and possibly assign the DHCP client a hostname, and a hosts file to<br class="m_-5966795294056462419gmail_msg">
map the IP and name statically in the DNS.<br class="m_-5966795294056462419gmail_msg">
<br class="m_-5966795294056462419gmail_msg">
(and no, I don't know of a way to combine dhcp-host and host-record<br class="m_-5966795294056462419gmail_msg">
into a single line, and I don't think there is except maybe through<br class="m_-5966795294056462419gmail_msg">
scripting)<br class="m_-5966795294056462419gmail_msg"><br class="m_-5966795294056462419gmail_msg"></blockquote><div>This is effectively what I do now, with a reload script that automates maintenance of the hosts entries. I was just hoping to avoid maintaining two configurations for each host, even if one is easy enough to generate from the other. </div><div><br></div><div>Thanks,</div><div><br></div><div>jbh</div></div></div>