Page 1 of 1

MikroScript.DNSLease: The last DHCP to static DNS script you'll need

Posted: Tue Dec 10, 2019 5:19 am
by tstivers
I purchased my hAP ac2 a few days ago and have been in love with it since. I missed the ability to automatically add DHCP leases with hostnames to my local DNS via dnsmasq that I had with my old DD-WRT router, though. I found some scripts that could do the task. But all of them had bugs and didn't quite work right for my needs. Being a programmer, I figured there had to be a better way. Introducing MikroScript.DNSLease.

Git Repository

Installation

Download the latest release and extract it.

Copy the flash folder to the root of your router's files directory.
The files should be in the following folder
flash/mikroscript/dnslease

Run the following command from a terminal and follow the instructions to set up DNSLease for a DHCP server. You may run the command multiple times to install the script for multiple servers.
/import flash/mikroscript/dnslease/install.rsc

Uninstall

Run the following command to uninstall DNSLease from a DHCP server.
/import flash/mikroscript/dnslease/uninstall.rsc
After uninstalling DNSLease from all DHCP servers, you may delete the `flash/mikroscript/dnslease` folder if you wish.