[Dnsmasq-discuss] dnsmasq + multiple DHCP Ranges based on net: tags
uberclocker at hotmail.com
Fri May 7 09:30:03 BST 2010
Thanks for that, it works perfectly now, I must have missed that bit in the
From: Simon Kelley [mailto:simon at thekelleys.org.uk]
Sent: 06 May 2010 17:09
To: Rob Emery
Cc: dnsmasq-discuss at lists.thekelleys.org.uk
Subject: Re: [Dnsmasq-discuss] dnsmasq + multiple DHCP Ranges based on net:
Rob Emery wrote:
> Hi all,
> I am finally at the end of my tether attempting to get dnsmasq to allocate
> IPs to machines in different ranges based on the net: tags I've allocated,
> don't see why this just won't work:
> # Configuration file for dnsmasq.
> # Add local-only domains here, queries in these domains are
> from /etc/hosts or DHCP only.
> # Set these if you want to have a domain automatically added to simple
> in a hosts-file.
> # For debugging purposes, log each DNS query as it passes through
These should be:
To quote the man page: "When it is prefixed with 'net:' then its meaning
changes from setting a tag to matching it." and matching a tag set
previously by dhcp-host is what you want to do.
My apologies that this is horribly confusing and inconsistent. The next
release of dnsmasq largely fixes it by making tag:<tagname> match a tag
everywhere, and set:<tagname> set a tag everywhere. That doesn't help
you in the meantime.
> ##as a side note: if I do this without the tag, will it just apply
> it to all 3 correctly?
Yes, it will.
> # Override the default route supplied by dnsmasq
> #force the dns server to be this machine
> # Set the NTP time server addresses to be this machine
> #BT VOIP Phone:
> To my brain, that should allocate the device with the MAC
> an address from the pool 10.0.8.1-10.0.9.254, but the IP it ends up with
> 10.0.4.195! I've hunted through the archive and found scraps of info, but
> none of it seems to quite be doing what I'm trying to do.
> I think I've either misunderstood the net tags or completely messed up the
> syntax. Any help would be greatly appreciated!
More information about the Dnsmasq-discuss