[Dnsmasq-discuss] Multiple server interaction with multiple subnets

Jeb Campbell jebc at c4solutions.net
Wed Dec 6 21:06:23 GMT 2006


Data Control Systems - Mike Elkevizth wrote:
> Thank you for the response. I am not really sure how the DHCP-relay works.
> The main reason I haven't tried this before, and I will study into that
> option, is that the subnets are connected through a VPN. They are three
> separate router boxes all connected through the internet. There is a high
> probability that these connections can be down for some periods of time
> where the servers cannot communicate with each other. While I would love to
> say that this won't happen, it will, and I would like each subnet to still
> be able to continue working (workstations on the local subnet communicating
> with the local server) even when this occurs. I believe that the relay will
> probably not be able to pass out DHCP addresses if it loses connection with
> the main DHCP server (this is what I will look into). So if you know a way
> to set up multiple dnsmasq to do what I was looking for I would still
> appreciate a quick how-to

If your setup looks something like this:
192.168.1.0/24 -> .subnet1.mydomain.org
192.168.2.0/24 -> .subnet2.mydomain.org
192.168.3.0/24 -> .subnet3.mydomain.org
(so you might have hostA.subnet1.mydomain.org, etc)

Then each dnsmasq server can direct queries about subnetX.mydomain.org
to the correct server.

See this part in the conf:
# Add other name servers here, with domain specs if they are for
# non-public domains.
#server=/localnet/192.168.0.1
server=/subnet1.mydomain.org/192.168.1.254

Does that help?

Jeb
-- 
Jeb Campbell
jebc at c4solutions.net



More information about the Dnsmasq-discuss mailing list