Melissa Lim
2009-09-29 20:09:42 UTC
<!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. But it's not quite working. I have 4 boards (1 controller and
3 web servers) in my system each with a static IP address. I have
dnsmasq running on the controller board and lighttpd (web server)
running on the 3 web server boards. <br>
<br>
In my /etc/hosts file I have:<br>
<br>
192.1.253.162 controller.test.local<br>
192.1.253.163 server.test.local<br>
192.1.253.164 server.test.local<br>
192.1.253.165 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. <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. Is this
supported? How do I know which web server is actually being used? Is
this information provided in a certain mode? 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. Round robin does appear to be
working, but not for every access. How do I set it up so that it
occurs for every access? Is the load balancing feature doing a
redirect or is the data always going through the controller board? <br>
<br>
Also, is there a way to have load balancing occur when I access the IP
address of the controller? (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). Maybe via
the dnsmasq config file???<br>
<br>
Any help would be much appreciated.<br>
<br>
Thanks,<br>
Melissa </font></font>
</body>
</html>
<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. But it's not quite working. I have 4 boards (1 controller and
3 web servers) in my system each with a static IP address. I have
dnsmasq running on the controller board and lighttpd (web server)
running on the 3 web server boards. <br>
<br>
In my /etc/hosts file I have:<br>
<br>
192.1.253.162 controller.test.local<br>
192.1.253.163 server.test.local<br>
192.1.253.164 server.test.local<br>
192.1.253.165 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. <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. Is this
supported? How do I know which web server is actually being used? Is
this information provided in a certain mode? 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. Round robin does appear to be
working, but not for every access. How do I set it up so that it
occurs for every access? Is the load balancing feature doing a
redirect or is the data always going through the controller board? <br>
<br>
Also, is there a way to have load balancing occur when I access the IP
address of the controller? (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). Maybe via
the dnsmasq config file???<br>
<br>
Any help would be much appreciated.<br>
<br>
Thanks,<br>
Melissa </font></font>
</body>
</html>