[Dnsmasq-discuss] load balanced dnsmasq?

Mariano Absatz el.baby at gmail.com
Tue Jul 20 14:17:35 BST 2010


So, given that, I may write down the static IP/hostname assignments in
every dnsmasq server and that would give the correct name in every
server.

All would have the same MAC/IP/hostname configuration in dnsmasq.conf
so even if there are dhcp collisions (e.g. because 2 servers got a
broadcast request), they would all reply the same configuration and
the clients should be happy enough, would they?

On Tue, Jul 20, 2010 at 10:04, richardvoigt at gmail.com
<richardvoigt at gmail.com> wrote:
> The basic rule for running multiple instances is to not give them
> overlapping pools.  Since you use only reservations, this shouldn't be a
> problem.
> However: the automatically generated dns entries when the address is given
> out over DHCP won't be visible to other servers, you'll have to use
> permanent records if you want to contact those nodes by name.  That wouldn't
> be feasible for dynamic mappings, but with reservations it's straightforward
> albeit more work.
>
> On Mon, Jul 19, 2010 at 6:34 PM, Mariano Absatz <el.baby at gmail.com> wrote:
>>
>> Hi,
>>
>> is there a way to "load balance" among dnsmasq servers?
>>
>> I have a network of a half dozen servers (with static IPs which I
>> write down in /etc/hosts for dnsmasq to publish), plus about 50
>> computers which get their IP and hostname from dnsmasq and use it to
>> resolve dns, especifically, to know the IP of the servers and other
>> PCs with very little "outside" queries... queries to outside dns are
>> mostly done on behalf of the servers which need to connect to the
>> outer world.
>>
>> What's more, for the 50 computers, I have compiled the MAC addresses
>> and I'm giving them always the same IP/hostname (and no, I can't
>> configure static IP in every computer).
>>
>> It seems that every now and then, one of the computers boot and can't
>> get its own address via DHCP (I see nothing in the dnsmasq log so I
>> think it may have missed a bunch of DHCP requests from the client at
>> some point)... other thing that I also see happen is that cilents
>> query dns and get no answer back...a few moments later, the same query
>> gets an answer.
>>
>> I suspect that at some point, dnsmasq can't handle all the requests it
>> gets (it is running on a busy server... but I also have seen something
>> similar -dns queries not being answered- on a less busy server).
>>
>> I'd like to be able to put dnsmasq on 2 or 3 servers and that anyone
>> of them be able to, at least, resolve dns... ideally, it'd be nice if
>> it could also handle dhcp requests.
>>
>> Any suggestions?
>>
>> TIA


-- 
Mariano Absatz - El Baby
www.clueless.com.ar



More information about the Dnsmasq-discuss mailing list