[Swansea Hackspace] Raspberry pi dns server

Justin Mitchell justin at discordia.org.uk
Thu Oct 23 11:40:57 BST 2014


On Thu, 2014-10-23 at 02:05 +0100, Graham Owens wrote:

> Short version:
> How to install a local DNS server on a raspberry pi for use at home,
> dhcp would be nice too but not essential.  How to route a dns enquiry
> to a local server.

DNS server isnt that hard once you understand what records should be int
he zone files, distros will come with a selection, bind/named at the
least plus some others, theres usually a couple of example zone files
and a default config. If you get an option you will want to setup a
caching-nameserver plus a master zone for the one your overriding.

Making stuff use that nameserver is usually just putting its ip address
in your DHCP server config, many people have their broadband router be
their dhcp server so look in its config.

> Have read the reviews and it seems to boil down to this:  the hardware
> is okay, gets the job done etc, but it has no local output, it ONLY
> connects to oregon's servers, then the user can view the data with an
> phone app, or online in a webbrowser.

If it is well behaved, then it will use dhcp, get the nameserver entry,
and lookup the domain to submit its data to, which is where your plan
should work fine.

If it isnt well behaved, if it has hardcoded an IP addres to connect to
or something, then you will need to intercept the traffic, and
ultimately pretend to be the relevant address etc.

One of the more obvious ways to do this would be with a linux box with
two ethernet ports, configured to be a (probably NAT) router, plenty of
guides online how to do this.

That way ALL the traffic from the weather station can be monitored,
analysed, and eventually intercepted and pointed at your own scripts.
 





More information about the Hackspace mailing list