|
Re: Multiple host names (CNAME-ish behavior): msg#00047network.dns.dnsmasq.general
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 > >ml > > > > 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. > > /etc/hosts: > 192.168.0.254 studio.internal studio ads db images boatertalk tys > > /etc/dnsmasq.conf: > dhcp-host=studio,00:11:22:33:44:55 Hmm...that didn't follow with my experimentation. /etc/hosts: 192.168.1.254 mirnda.lan miranda svn somehostname /etc/dnsmasq.conf: dhcp-host=miranda,00:0c:29:a0:c8:c0 /etc/init.d/network stop (lease is released, no longer in dhcp.leases /etc/init.d/network start 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? j -- Joshua Kugler Lead System Admin -- Senior Programmer http://www.eeinternet.com PGP Key: http://pgp.mit.edu/ ID 0xDB26D7CE PO Box 80086 -- Fairbanks, AK 99708 -- Ph: 907-456-5581 Fax: 907-456-3111 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Multiple host names (CNAME-ish behavior): 00047, Simon Kelley |
|---|---|
| Next by Date: | Domain Forwarding on OpenWrt/Dnsmasq: 00047, Christopher Parker |
| Previous by Thread: | Re: Multiple host names (CNAME-ish behavior)i: 00047, Simon Kelley |
| Next by Thread: | Re: Multiple host names (CNAME-ish behavior): 00047, Joshua J. Kugler |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |