[Dnsmasq-discuss] [suggestion] tiny embedded web server

Jon Nelson jnelson+dnsmasq at jamponi.net
Wed May 25 17:46:30 BST 2011


On Wed, May 25, 2011 at 10:11 AM, Ed W <lists at wildgooses.com> wrote:
> On 25/05/2011 14:31, richardvoigt at gmail.com wrote:
>> On Wed, May 25, 2011 at 6:50 AM, Shantanu Gadgil
>> <shantanugadgil at yahoo.com> wrote:
>>> I am a fan of dnsmasq and use it a lot.
>>>
>>> The web-server idea doesn;t sound half-bad, now that PXELINUX has
>>> HTTP support (syslinux-4.10-pre14+) to load the kernel and initrd images
>>
>> There are already plenty of lightweight embedded web servers.  What do
>> you see as the advantage of putting it inside dnsmasq?  Is the web
>> content going to include dnsmasq-internal information such as the dhcp
>> lease table, dns cache, cache statistics, etc?
>
> I tend to agree
>
> Now, the next question is perhaps, what is the lightest weight and most
> dependency free simply http server?  For example I have a server that I
> want to add to the ntp pool and one of their requests is that any http
> request to that IP is responded to with a redirect to the main
> http://pool.ntp.org website - trivial and desperately in need of a super
> lightweight server?

I agree. The next thing you'll know, people will want an IMAP proxy
and a user-space NFS server in dnsmasq.

> I can think of busybox's server. Probably there are some trivial perl
> scripts (but I would want to hear they weren't exploitable...).  Any
> other ideas for a trivial lightweight http server? Minimal logging, 301
> redirects and static file serving being the only requirements - non
> conforming to non mainstream http request headers completely acceptable...

Have you considered boa (http://www.boa.org/) ? It's been around a
long time, is rock solid, and produces a fast and very small
executable.


-- 
Jon



More information about the Dnsmasq-discuss mailing list