Update README.md

This commit is contained in:
Filip Znachor 2021-07-25 22:42:47 +00:00
parent baa4453186
commit 5e4ae90d33

View file

@ -6,15 +6,28 @@ It combines **DHCPv4 server leases** with **IP neigh** and add ALL device addres
Can be used for assinging **RA addresses to device hostnames**, which are defaultly **NOT** assigned in OpenWrt.
## Instalation
Add this script to **dnsmasq's dhcp-script** option:
```
dhcp-script = lua /path/to/dyndns.lua
```
Or via dhcpscript in uci:
Or via dhcpscript in OpenWrt uci:
```
config dnsmasq
option dhcpscript 'lua /path/to/dyndns.lua'
```
Also add `list addnhosts '/tmp/dyndns'` to make dnsmasq using DynDNS's hosts file.
Also add `list addnhosts '/tmp/dyndns'` to use DynDNS's hosts file.
## Features
- Assign all device IPs to its hostname
- Support network domains
- Automatically add records to dnsmasq
- Automatic trigg on DHCP lease
## Todo
- Assign only addresses from specific subnets (not all)