Wake-On-LAN (WOL) is a very useful feature if you have got a LAB at home and want to make it energy efficient. I have written a small BASH script to automate the Wake-On-LAN (WOL) procedure which can be used in an instance where there is a ESXi server which can turned on as and when required and then shutdown when not needed. Believe me it saves a lot on electric bills as the Servers are not running 24/7 and powered on only when required.
It’s possible to enable DNS forwarding using BIND and including reverse lookup for the zone. Once you are done with the config of a basic bind server, all you need to do is configure “/etc/bind/named.conf.options and conf.local” with the following options and restart the service.
In this example we have got 2 DNS server’s resolving.
SERVER1 = raspi-qud.hm.local = domain : HM.LOCAL : IP: 172.16.64.1
SERVER 2 = viz-raspi-st.dev.local = domain : DEV.LOCAL :IP: 172.16.66.212
We need to resolve local requests for “hm.local” on SERVER 1 and forward any “dev.local” domain requests (forward and reverse lookups) to SERVER 2 and hence need to configure SERVER 1 to achieve this.
To start with add the zone dev.local to “/etc/bind/named.conf.local” and add the forward zone to the config file.
If you are finding it difficult to recognize files and folders in RaspberryPi DebianWheezy dist OS, you can enable Ls COLORS to make them more recognizable. All you need to do is edit /.bashrc and logout and login back to enable it.
If you can’t spend thousands for a static IP, Try out this script which sends out an email alert whenever Public IP address changes. In a situation where you need a VPN solution without spending thousands on a static IP no matter if you are a HOME user or a Small Business owner, all you need to have is a RasberryPi and a decent Small Business VPN Router. For this article I used a Cisco RV110w VPN Router.
SSMTP is a email service for Raspbian and is used for sending out emails internally in a network and externally.Its a very simple install and will get you up and running in no time. This process would need a Root account and make sure you update Raspbian to the latest patch level. You can update by running “sudo apt-get update“.
This article will show you how to Setup and configure DNS Server on Raspbian. Its called as Bind9 on RasberryPi and is used for resolving IP address to domain name and vice-versa. Make sure that you are logged in as ROOT user and update the OS to the latest.
For reference the IP of this test RasPi is 172.16.64.9
Its now possible to install latest Nagios CORE version on Raspbian by following the steps in this article. Before writing this article I Googled for the same but couldn’t find a single article covering install of latest version of Nagios on RasberryPi hence this guide. It has been fully tested and working on my personal RasPi.
This guide was originally written for Ubuntu but will work for Raspbian (Debian Wheezy) flavour for RasberryPi as well. It might work for all debian distros but not guranteed, you can try it out yourself.