<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000066">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Hello:<br>
<br>
I'm trying to get Round Robin DNS with dnsmasq working on my embedded
system.&nbsp; But it's not quite working.&nbsp; I have 4 boards (1 controller and
3 web servers) in my system each with a static IP address.&nbsp; I have
dnsmasq running on the controller board and lighttpd (web server)
running on the 3 web server boards. &nbsp;<br>
<br>
In my /etc/hosts file I have:<br>
<br>
192.1.253.162&nbsp;&nbsp; &nbsp;controller.test.local<br>
192.1.253.163&nbsp;&nbsp; &nbsp;server.test.local<br>
192.1.253.164&nbsp;&nbsp; &nbsp;server.test.local<br>
192.1.253.165&nbsp;&nbsp; &nbsp;server.test.local<br>
<br>
I've added the controller board's IP address to my laptop's DNS
adresses, so when I access server.test.local from my web browser on my
laptop, I see my test web page. &nbsp;<br>
<br>
Each time I access the web page, I'd like for dnsmasq to load balance
the request to the 3 web servers in a round robin fashion.&nbsp; Is this
supported?&nbsp; How do I know which web server is actually being used?&nbsp; Is
this information provided in a certain mode?&nbsp; I'm running in daemon
mode and I see the following:<br>
<br>
dnsmasq: query[A] server.test.local from 192.1.255.186<br>
dnsmasq: /etc/hosts server.test.local is 192.1.253.165<br>
dnsmasq: /etc/hosts server.test.local is 192.1.253.163<br>
dnsmasq: /etc/hosts server.test.local is 192.1.253.164<br>
<br>
This infomation is NOT provided everytime the web page is accessed -
only when it switches web server.&nbsp; Round robin does appear to be
working, but not for every access.&nbsp; How do I set it up so that it
occurs for every access?&nbsp; Is the load balancing feature doing a
redirect or is the data always going through the controller board? &nbsp;<br>
<br>
Also, is there a way to have load balancing occur when I access the IP
address of the controller?&nbsp; (i.e. have <a moz-do-not-send="true"
 class="moz-txt-link-freetext" href="http://192.1.253.162">http://192.1.253.162</a>
look like
<a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://server.test.local">http://server.test.local</a> and
access the web server boards).&nbsp; Maybe via
the dnsmasq config file???<br>
<br>
Any help would be much appreciated.<br>
<br>
Thanks,<br>
Melissa &nbsp;</font></font>
</body>
</html>