<html><body>From reading the man page, and my understanding of the statement "Only one hostname can be given in a --dhcp-host option, but aliases are possible by using CNAMEs. (See --cname )" I've been attempting to implement this without any success so far.<div><br></div><div>My goal is to have two names get assigned the same IP via DHCP. The purpose of this is transitioning IPSec IDs as I have strongswan using dnsmasq to assign static IPs to mobile clients.</div><div><br></div><div>In this example I would like both DEVICE_V1 and DEVICE_V2 to get the same IP address 10.1.2.3 and my current attempted configuration is as follows.<br></div><div><br></div><div>/etc/hosts contains:</div><div><br></div><div>10.1.2.3<span class="Apple-tab-span" style="white-space:pre"> </span>DEVICE_V1<br></div><div><br></div><div>--</div><div><br></div><div>dnsmasq conf file contains:<br></div><div><br></div><div><div>cname=DEVICE_V2,DEVICE_V1</div><div>dhcp-host=DEVICE_V1,10.1.2.3,infinite</div></div><div><br></div><div>--</div><div><br></div><div>I've tried variations including defining both IDs in the hosts file as follows and adding "host-record" conf options for DEVICE_V1 but neither made a difference.</div><div>10.1.2.3<span class="Apple-tab-span" style="white-space:pre"> </span>DEVICE_V1 DEVICE_V2<br></div><div><br></div><div>So far no matter what I've tried only the ID specified in the dhcp-host option actually gets an IP.</div><div>In the dnsmasq log I get the following message for DEVICE_V2.</div><div>client provides name: DEVICE_V2<br></div><div>DHCPDISCOVER(eth0) 00:11:22:33:44:55 no address available<br></div><div><br></div><div>I'd love either some clarification on how this is supposed to work or perhaps this is a bug in dnsmasq 2.80?</div></body></html>