[Dnsmasq-discuss] Multiple host names (CNAME-ish behavior)
Joshua J. Kugler
joshua at eeinternet.com
Fri Dec 22 22:57:09 GMT 2006
On Friday 22 December 2006 12:36, Simon Kelley wrote:
> Joshua J. Kugler wrote:
> > I found this post in the archives:
> > http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2006q4/000942.ht
> > But it doesn't solve my issue.
> > I'd like to be able to assign aliases to hostnames in dhcp. So, if I
> > have a machine that registers itself as host1, I then want to be able to
> > do lookups with the names host2, host3, etc. Kind of like an /etc/hosts
> > file, but instead of an IP column it has a "actual host name" column.
> > The post to which I linked above requires the machine to have a static
> > IP, and I want to avoid that if possible, even if I'm only "binding" to
> > the MAC and doing static DHCP.
> > Any way to do this?
> The post you reference is about the best you can do, but it does doesn't
> require a static IP, ie the host doesn't have to know it's IP address.
> In the example, the host knows its name, and dnsmasq uses that to assign
> the IP address by DHCP. If you want to use the MAC address instead, just
> add that to the dhcp-host line.
> 192.168.0.254 studio.internal studio ads db images boatertalk tys
Hmm...that didn't follow with my experimentation.
192.168.1.254 mirnda.lan miranda svn somehostname
(lease is released, no longer in dhcp.leases
Still gets 192.168.1.208, not 1.254
Do I need to set the IP in the on the dhcp-host= line too? Or did I forget a
config file parameter?
Lead System Admin -- Senior Programmer
PGP Key: http://pgp.mit.edu/ ID 0xDB26D7CE
PO Box 80086 -- Fairbanks, AK 99708 -- Ph: 907-456-5581 Fax: 907-456-3111
More information about the Dnsmasq-discuss