[Commotion-discuss] RPi Gateway

Josh King jking at opentechinstitute.org
Mon Mar 23 14:15:17 EDT 2015


Hey Josh,

Funny you should ask, we just published documentation covering this use
case!

https://commotionwireless.net/docs/guides-howtos/local-applications/hostnames.html

Option #2 is what you want. It's not as thoroughly tested as we'd like,
so we'd appreciate your feedback (or any issues filed against
https://github.com/opentechinstitute/commotion-docs, the repo for the
website). The upshot is that you have to point the nodes to use that as
their DNS server rather than whatever their upstream DNS is.

That said, I'm not certain why it would be dropping the gateway; that
could be a number of issues that we could delve into which are separate
from the DNS question.

The round-robin bit isn't much trickier. In the section of the doc
entitled "Changing DNS server information on each node," you can add
multiple "list 'dns' '<ip address>'" lines, one for each server you've
set up. The node should just rotate through all available DNS servers
one at a time. There are some options to tweak its behavior as well, in
case it doesn't query them as expected.

I hope this is helpful!

On 03/23/2015 01:16 PM, Josh Harle wrote:
> Hi All,
> 
> I have another question, which I'm sure people can give me insight on.  
> 
> In my mesh network, plugging into a router works fine, and we get the
> internet.  
> 
> I'd like to use an Raspberry Pi running dnsmasq to resolve all DNS
> queries to itself, and serve up some content.  Just like a captive
> portal really, but with the mesh in between.  
> 
> When I first connect it, the mesh node connected to it picks it up as a
> gateway.  The DNS isn't being served through it though, and I can only
> connect to it via its IP address.  After a while the node no longer
> shows itself as connected to a gateway.  
> 
> What's the difference between it and a normal gateway?  What do I have
> to do to get DNS served up through it across the network?  
> 
> For bonus points, how much trouble would it be to put more than one RPi
> into the network at different points to spread the load and reduce
> latency across a geographically spread network?
> 
> Thanks for being awesome, in advance!
> 
> 
> 
> Kind Regards,
> 
> Josh Harle
> BSc (Hons) BA BFA PhD
> ____________________
> http://joshharle.com
> http://tacticalspace.org <http://tacticalspace.org/>
> ph: +61 (0)491 155 985
> 
> 
> _______________________________________________
> Commotion-discuss mailing list
> Commotion-discuss at lists.chambana.net
> https://lists.chambana.net/mailman/listinfo/commotion-discuss
> 

-- 
Josh King
Lead Technologist
The Open Technology Institute
http://opentechinstitute.org
PGP Fingerprint: 8269 ED6F EA3B 7D78 F074 1E99 2FDA 4DA1 69AE 4999

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.chambana.net/pipermail/commotion-discuss/attachments/20150323/d022d275/attachment.sig>


More information about the Commotion-discuss mailing list