[Dnsmasq-discuss] dhcp-host: Use hostname instead of ip?
Gene Czarcinski
gene at czarc.net
Thu Dec 6 20:42:07 GMT 2012
On 12/06/2012 10:57 AM, Karsten Heymann wrote:
> Hi,
>
> in isc-dhcp it is possible to specify the fixed-address of a dhcp host
> via its hostname and have the dhcp server resolve this upon a dhcp
> request, so the only place IP addresses are stored is in the dns. I'm
> not using the dnsmasq dns server (-p 0). Am I right that this is not
> possible when using dnsmasq? I tried using
>
> dhcp-host <mac-address>,my.full.qualified.hostname
>
> but this seems to have other semantics.
>
>
I have successfully used both IPv4 and IPv6 "nailed IPs" specifying the
system name (not the FQDN) and an IP address. This is about the only
practical way to do it since a MAC does not have meaning in IPv6. This
works fine on real hardware and also with the DHCPv6 support currently
being integrated into libvirt.
For dnsmasq, I have used something like
dhcp-host=george,[fd00:dead:beef:17::2]
Gene
More information about the Dnsmasq-discuss
mailing list