[Dnsmasq-discuss] Supporting more than one domain.
abnormaliti at clivepeeters.com.au
Tue Jul 29 02:43:21 BST 2008
Simon Kelley wrote:
> However, it did light a lightbulb, most people who want multiple domains
> probably want them associated with particular IP address ranges, (or at
> least can organise things to make that true.) Given that each lease has
> to have an IP address, that makes mapping from lease to domain perfectly
> simple. It also makes use of the domain to expand names in /etc/hosts
> work well (see the --expand-hosts flag)
> So, here is a suggestion:
> Elaborate the "domain=" config option so that, as well as
> the following are also valid
> Multiple domain lines are now allowed, and the smallest address range
> which matches will be used. The IPv6 version is useful for /etc/hosts
> and --expand-hosts, it's clearly not used for DHCP (which is IPv4 only
> in dnsmasq).
> This has lots of advantages: it's completely backwards-compatible with
> existing configs, it's straightforward to use, and straightforward to
> What do people think, would that be sufficiently useful?
That would be fine by me. I would prefer a consistent syntax like
"net:network-id" but if that isn't practical then i will survive.
> As part of implementing this, I'd like to try (again) to remove the
> long-deprecated ISC lease-file reading code. If I don't remove it, it
> will need work to fit in with the new facilities. I've tried to remove
> this code before and had complaints; can I assume by now that that code
> is dead?
Fine by me.
So to make sure i am clear a configuration would look like this, right?
While i am at it can i also request that support for the
"net:network-id" syntax be supported wherever network-id's can be used?
Using the example above i would like to be able to keep things
consistent and clearer like this.
More information about the Dnsmasq-discuss