OpenWrt-Tools/DynDNS
2022-04-02 16:20:03 +02:00
..
dyndns.lua Update 'DynDNS/dyndns.lua' 2022-04-02 16:20:03 +02:00
install.sh Update 'DynDNS/install.sh' 2022-04-02 16:18:43 +02:00
README.md Update README.md 2021-07-25 22:42:47 +00:00

DynDNS

Dynamic DNS records can be used for assigning hostnames to local devices.

It combines DHCPv4 server leases with IP neigh and add ALL device addresses to DNS hostnames.

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 OpenWrt uci:

config dnsmasq
	option dhcpscript 'lua /path/to/dyndns.lua'

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)